Ejemplo n.º 1
0
    protected virtual void TakeTurn(Piece piece, Move move)
    {
        kifu.addMove(move);
        piece.makeMove(move, true);
        //promotion choice
        //check for check + game end
        if (board.isCheckmate(turns.inactivePlayer()))
        {
            Debug.Log("~~~IT'S CHECKMATE!!!! YOU ARE THE WEINER!!!!");
        }

//        Debug.Log("Player " + (isPlayerOne() ? "one" : "two") + " is in check: " + board.isCheck(this));
        turns.passTurn();
    }