Ejemplo n.º 1
0
    public override void StartGame()
    {
        board.InitBoard();
        mctsPlayer.SetPlayerInd(ReversiBoard.players[playerFirst ? 1 : 0]);
        mctsPlayer.ResetPlayer();

        UpdateBoard();
        thisTurn = PieceType.Black;

        StartCoroutine("StartGameLater");
    }
    public override void StartGame()
    {
        board.InitBoard();
        mctsPlayer.SetPlayerInd(Connect4Board.players[playerFirst ? 1 : 0]);
        mctsPlayer.ResetPlayer();

        UpdateBoard();
        thisTurn = Connect4PieceType.Yellow;
        aiMoved  = false;

        StartCoroutine("StartGameLater");
    }
Ejemplo n.º 3
0
    public override void StartGame()
    {
        for (int i = 0; i < pieces.Length; i++)
        {
            pieces[i].SetPiece(PieceType.Empty);
            boardSituation[i] = PieceType.Empty;
        }
        thisTurn = PieceType.Black;

        board.InitBoard();
        mctsPlayer.SetPlayerInd(ReversiBoard.players[playerFirst ? 1 : 0]);
        mctsPlayer.ResetPlayer();

        StartCoroutine("StartGameLater");
    }