Пример #1
0
 void TakeTurn()
 {
     if (boardState.Winner() == Tile.EMPTY)
     {
         if (currentTeam == Tile.CROSS)
         {
             boardState  = player1.MakeMove(boardState, currentMove);
             currentTeam = Tile.NOUGHT;
         }
         else if (currentTeam == Tile.NOUGHT)
         {
             boardState  = player2.MakeMove(boardState, currentMove);
             currentTeam = Tile.CROSS;
         }
     }
     else
     {
         Debug.Log("Winner is: " + boardState.Winner());
     }
 }