Esempio n. 1
0
 private int PlayTurn2(Board board)
 {
     if (board.GetSpecificPositionValue(4) != _nonTurnPlayerSymbol)
     {
         return(4);
     }
     return(PlayFirstTurn());
 }
Esempio n. 2
0
 private bool IsBoardPositionOpen(Board board, int position)
 {
     return(board.GetSpecificPositionValue(position) != _turnPlayerSymbol &&
            board.GetSpecificPositionValue(position) != _nonTurnPlayerSymbol);
 }
Esempio n. 3
0
 private bool IsBestMove(Board board, List <int> possibleBlock, int possibleMove, string symbol)
 {
     return(board.GetSpecificPositionValue(possibleBlock[0]) == symbol &&
            board.GetSpecificPositionValue(possibleBlock[1]) == symbol &&
            board.GetSpecificPositionValue(possibleMove) == Convert.ToString(possibleMove + 1));
 }