Esempio n. 1
0
        public bool CheckIndexForMill(int index, IPlayer player)//Takes a node index and a player to see if that player has a mill from that node
        {
            ICow   cow   = player.GetCow();
            IMills mills = this.mills.GetMillsByIndex(index);

            foreach (Mill mill in mills.GetMills())
            {
                if (CheckMillAgainstBoard(mill, cow))
                {
                    currentMills.Add(mill); return(true);
                }
            }
            return(false);
        }
Esempio n. 2
0
 public void CheckPreviousMill(IMills Mill)
 {
     throw new NotImplementedException();
 }