Exemplo n.º 1
0
    private static ChessBoard BuildBoardFromFen(FenBoardBuilder builder)
    {
        var board = new ChessBoard
        {
            FenBuilder = builder,
            pieces     = builder.Pieces
        };

        board.headers.Add("Variant", "From Position");
        board.headers.Add("FEN", builder.ToString());

        board.HandleKingChecked();
        board.HandleEndGame();

        return(board);
    }