예제 #1
0
    //checks if the game is over by calling the BoardState. This should be called after every player move.
    public void CheckBoardPositions(Vector2Int tileValue)
    {
        if (BoardState.CheckIfGameOver(tileValue, (int)currentPlayer))
        {
            GameFinish();
            return;
        }

        if (BoardState.CheckIfDraw())
        {
            GameDraw();
            return;
        }

        EndTurn();
    }