Ejemplo n.º 1
0
        private bool CheckMillAgainstBoard(Mill mill, Cow cow)//checks a specified possible mill against a type of cow to see if a mill has been created
        {
            bool       check = true;
            List <int> list  = mill.ToList();

            foreach (int i in list)
            {
                check = check && GetNode(i) == cow;
            }
            return(check);
        }
Ejemplo n.º 2
0
 public void Add(Mill mill)//adds a mill to mills
 {
     mills.Add(mill);
 }