Exemple #1
0
 private void Print(Bool tie)
 {
     if (tie.Not())
     {
         return;
     }
     _printer.Print();
 }
        private IEnumerable <Int> Scores(IBoard board, IPlayer activePlayer, IPlayer passivePlayer, Bool activePlayerTurn)
        {
            IList <Int> scores = new List <Int>();

            foreach (ICell cell in board.AvailableSpaces())
            {
                IBoard clone = board.Clone();
                clone.ClaimEndsGame(cell, activePlayer);
                scores.Add(MinMaxRecursion(clone, passivePlayer, activePlayer, activePlayerTurn.Not()));
            }

            return(scores);
        }