diff --git a/api/api.go b/api/api.go index 15c89cf..1c9b896 100644 --- a/api/api.go +++ b/api/api.go @@ -1,21 +1,20 @@ package api -import ( - "fmt" -) +import "errors" type API struct{} func New() API { return API{} } var ( - errInvalidInputGame = fmt.Errorf("invalid input game: please supply a valid fenString or a board") - errAlgebraicSquareInvalidOrOutOfBounds = fmt.Errorf("invalid algebraic square: empty or out of bounds") - errInvalidPieceTypeName = fmt.Errorf("invalid piece type name: please use one of {Queen|King|Bishop|Knight|Rook|Pawn} or empty string") - errInvalidActionForGivenGame = fmt.Errorf("the specified action is invalid for the specified game") + errInvalidInputGame = errors.New("invalid input game: please supply a valid fenString or a board") + errAlgebraicSquareInvalidOrOutOfBounds = errors.New("invalid algebraic square: empty or out of bounds") + errInvalidPieceTypeName = errors.New("invalid piece type name: please use one of {Queen|King|Bishop|Knight|Rook|Pawn} or empty string") + errInvalidActionForGivenGame = errors.New("the specified action is invalid for the specified game") ) func (a API) DefaultGame() OutputGame { + var defaultGame, _ = newGameFromFEN("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1") return mapGameToOutputGame(defaultGame) } diff --git a/api/api_utils.go b/api/api_utils.go index 113565f..80584bb 100644 --- a/api/api_utils.go +++ b/api/api_utils.go @@ -11,6 +11,7 @@ func (a API) parseGame(g InputGame) (game, error) { ) switch { case g.DefaultGame: + var defaultGame, _ = newGameFromFEN("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1") parsedGame = defaultGame case g.FENString != "": parsedGame, err = newGameFromFEN(g.FENString) diff --git a/api/board.go b/api/board.go index f2163b6..f4b8e9a 100644 --- a/api/board.go +++ b/api/board.go @@ -1,6 +1,7 @@ package api import ( + "errors" "fmt" "strings" ) @@ -18,21 +19,21 @@ type board struct { } var ( - errBoardInvalidEnPassantTargetSquare = fmt.Errorf("enPassantTargetSquare must be either empty string or valid algebraic notation square e.g. d6") - errBoardTurnMustBeBlackOrWhite = fmt.Errorf("turn must be either Black or White") - errBoardDuplicateKing = fmt.Errorf("board has two kings of the same color") - errBoardKingMissing = fmt.Errorf("board is missing one of the kings") - errBoardDimensionsWrong = fmt.Errorf("board dimensions are wrong; should be 8x8") - errBoardImpossibleBlackCastle = fmt.Errorf("impossible for black to castle since king has moved") - errBoardImpossibleBlackQueensideCastle = fmt.Errorf("impossible for black to queenside castle since rook has moved") - errBoardImpossibleBlackKingsideCastle = fmt.Errorf("impossible for black to kingside castle since rook has moved") - errBoardImpossibleWhiteCastle = fmt.Errorf("impossible for white to castle since king has moved") - errBoardImpossibleWhiteQueensideCastle = fmt.Errorf("impossible for white to queenside castle since rook has moved") - errBoardImpossibleWhiteKingsideCastle = fmt.Errorf("impossible for white to kingside castle since rook has moved") - errBoardImpossibleEnPassant = fmt.Errorf("impossible en passant target square, since there's no pawn of the right color next to it") - errBoardPawnInImpossibleRank = fmt.Errorf("impossible rank for pawn") - errBoardBlackHasMoreThan16Pieces = fmt.Errorf("black has more than 16 pieces") - errBoardWhiteHasMoreThan16Pieces = fmt.Errorf("white has more than 16 pieces") + errBoardInvalidEnPassantTargetSquare = errors.New("enPassantTargetSquare must be either empty string or valid algebraic notation square e.g. d6") + errBoardTurnMustBeBlackOrWhite = errors.New("turn must be either Black or White") + errBoardDuplicateKing = errors.New("board has two kings of the same color") + errBoardKingMissing = errors.New("board is missing one of the kings") + errBoardDimensionsWrong = errors.New("board dimensions are wrong; should be 8x8") + errBoardImpossibleBlackCastle = errors.New("impossible for black to castle since king has moved") + errBoardImpossibleBlackQueensideCastle = errors.New("impossible for black to queenside castle since rook has moved") + errBoardImpossibleBlackKingsideCastle = errors.New("impossible for black to kingside castle since rook has moved") + errBoardImpossibleWhiteCastle = errors.New("impossible for white to castle since king has moved") + errBoardImpossibleWhiteQueensideCastle = errors.New("impossible for white to queenside castle since rook has moved") + errBoardImpossibleWhiteKingsideCastle = errors.New("impossible for white to kingside castle since rook has moved") + errBoardImpossibleEnPassant = errors.New("impossible en passant target square, since there's no pawn of the right color next to it") + errBoardPawnInImpossibleRank = errors.New("impossible rank for pawn") + errBoardBlackHasMoreThan16Pieces = errors.New("black has more than 16 pieces") + errBoardWhiteHasMoreThan16Pieces = errors.New("white has more than 16 pieces") // TODO check if King is in checkmate that couldn't have been reached // TODO don't allow more than 8 pawns of any color // TODO check if both are in check diff --git a/api/board_test.go b/api/board_test.go index d20c49c..c0e2e7b 100644 --- a/api/board_test.go +++ b/api/board_test.go @@ -27,14 +27,14 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardKingMissing, }, @@ -51,14 +51,14 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕ ♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardKingMissing, }, @@ -75,14 +75,14 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕ ♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardKingMissing, }, @@ -99,14 +99,14 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardDuplicateKing, }, @@ -123,14 +123,14 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardDuplicateKing, }, @@ -147,14 +147,14 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "*", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "*", }, err: errBoardTurnMustBeBlackOrWhite, }, @@ -171,14 +171,14 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "e", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "e", + turn: "White", }, err: errBoardInvalidEnPassantTargetSquare, }, @@ -195,14 +195,14 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "e7", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "e7", + turn: "White", }, err: errBoardInvalidEnPassantTargetSquare, }, @@ -219,20 +219,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "e6 ", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "e6 ", + turn: "White", }, err: errBoardInvalidEnPassantTargetSquare, }, { name: "errBoardDimensionsWrong: space after 8th rank", - board: board{ + board: board{ board: []string{ "♜♞♝♛♚♝♞♜ ", "♟♟♟♟♟♟♟♟", @@ -243,20 +243,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardDimensionsWrong, }, { name: "errBoardDimensionsWrong: extra pawn", - board: board{ + board: board{ board: []string{ "♜♞♝♛♚♝♞♜", "♟♟♟♟♟♟♟♟", @@ -267,20 +267,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardDimensionsWrong, }, { name: "errBoardDimensionsWrong: empty 6th rank", - board: board{ + board: board{ board: []string{ "♜♞♝♛♚♝♞♜", "♟♟♟♟♟♟♟♟", @@ -291,20 +291,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardDimensionsWrong, }, { name: "errBoardImpossibleEnPassant: square valid, but no pawn", - board: board{ + board: board{ board: []string{ "♜♞♝♛♚♝♞♜", "♟♟♟♟♟♟♟♟", @@ -315,20 +315,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "e6", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "e6", + turn: "White", }, err: errBoardImpossibleEnPassant, }, { name: "errBoardImpossibleEnPassant: square valid, but black pawn didn't do en passant", - board: board{ + board: board{ board: []string{ "♜♞♝♛♚♝♞♜", "♟♟♟♟♟ ♟♟", @@ -339,20 +339,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "e6", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "e6", + turn: "White", }, err: errBoardImpossibleEnPassant, }, { name: "errBoardImpossibleEnPassant: square valid, but white pawn one move away from en passant", - board: board{ + board: board{ board: []string{ "♜♞♝♛♚♝♞♜", "♟♟♟♟♟♟♟♟", @@ -363,20 +363,20 @@ func TestBoardErrors(t *testing.T) { " ♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "e3", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "e3", + turn: "White", }, err: errBoardImpossibleEnPassant, }, { name: "errBoardImpossibleBlackCastle: black king has moved", - board: board{ + board: board{ board: []string{ "♜ ♚ ♜", "♟♟♟♟♟♟♟♟", @@ -387,20 +387,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖ ♔ ♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleBlackCastle, }, { name: "errBoardImpossibleWhiteCastle: white king has moved", - board: board{ + board: board{ board: []string{ "♜ ♚ ♜", "♟♟♟♟♟♟♟♟", @@ -411,20 +411,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖ ♔ ♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleWhiteCastle, }, { name: "errBoardImpossibleBlackQueensideCastle: no rook", - board: board{ + board: board{ board: []string{ " ♚ ♜", "♟♟♟♟♟♟♟♟", @@ -435,20 +435,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖ ♔ ♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleBlackQueensideCastle, }, { name: "errBoardImpossibleBlackQueensideCastle: rook has moved", - board: board{ + board: board{ board: []string{ " ♜ ♚ ♜", "♟♟♟♟♟♟♟♟", @@ -459,20 +459,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖ ♔ ♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleBlackQueensideCastle, }, { name: "errBoardImpossibleBlackKingsideCastle: no rook", - board: board{ + board: board{ board: []string{ "♜ ♚ ", "♟♟♟♟♟♟♟♟", @@ -483,20 +483,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖ ♔ ♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleBlackKingsideCastle, }, { name: "errBoardImpossibleBlackKingsideCastle: rook has moved", - board: board{ + board: board{ board: []string{ "♜ ♚ ♜ ", "♟♟♟♟♟♟♟♟", @@ -507,20 +507,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖ ♔ ♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleBlackKingsideCastle, }, { name: "errBoardImpossibleWhiteQueensideCastle: no rook", - board: board{ + board: board{ board: []string{ "♜ ♚ ♜", "♟♟♟♟♟♟♟♟", @@ -531,20 +531,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", " ♔ ♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleWhiteQueensideCastle, }, { name: "errBoardImpossibleWhiteQueensideCastle: rook has moved", - board: board{ + board: board{ board: []string{ "♜ ♚ ♜", "♟♟♟♟♟♟♟♟", @@ -555,20 +555,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", " ♖ ♔ ♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleWhiteQueensideCastle, }, { name: "errBoardImpossibleWhiteKingsideCastle: no rook", - board: board{ + board: board{ board: []string{ "♜ ♚ ♜", "♟♟♟♟♟♟♟♟", @@ -579,20 +579,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖ ♔ ", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleWhiteKingsideCastle, }, { name: "errBoardImpossibleWhiteKingsideCastle: rook has moved", - board: board{ + board: board{ board: []string{ "♜ ♚ ♜", "♟♟♟♟♟♟♟♟", @@ -603,20 +603,20 @@ func TestBoardErrors(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖ ♔ ♖ ", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, err: errBoardImpossibleWhiteKingsideCastle, }, { name: "errBoardPawnInImpossibleRank: black pawn in 8th rank", - board: board{ + board: board{ board: []string{ "♟ ♚ ", " ", @@ -633,7 +633,7 @@ func TestBoardErrors(t *testing.T) { }, { name: "errBoardPawnInImpossibleRank: black pawn in 1st rank", - board: board{ + board: board{ board: []string{ " ♚ ", " ", @@ -650,7 +650,7 @@ func TestBoardErrors(t *testing.T) { }, { name: "errBoardPawnInImpossibleRank: white pawn in 1st rank", - board: board{ + board: board{ board: []string{ " ♚ ", "♟ ", @@ -667,7 +667,7 @@ func TestBoardErrors(t *testing.T) { }, { name: "errBoardPawnInImpossibleRank: white pawn in 1st rank", - board: board{ + board: board{ board: []string{ " ♚ ♙", "♟ ", @@ -737,14 +737,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♙♙♙♙♙♙♙♙", "♖♘♗♕♔♗♘♖", }, - canWhiteKingsideCastle: true, + canWhiteKingsideCastle: true, canWhiteQueensideCastle: true, - canBlackKingsideCastle: true, + canBlackKingsideCastle: true, canBlackQueensideCastle: true, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -757,14 +757,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -777,14 +777,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -797,14 +797,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -817,14 +817,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -837,14 +837,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -857,14 +857,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -877,14 +877,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -897,14 +897,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -917,14 +917,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -937,14 +937,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -957,14 +957,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -977,14 +977,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -997,14 +997,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1017,14 +1017,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1037,14 +1037,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1057,14 +1057,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1077,14 +1077,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1097,14 +1097,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1117,14 +1117,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1137,14 +1137,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1157,14 +1157,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1177,14 +1177,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1197,14 +1197,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♔ ♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1217,14 +1217,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1237,14 +1237,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♔ ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1257,14 +1257,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1277,14 +1277,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♔ ♟", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1297,14 +1297,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1317,14 +1317,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1337,14 +1337,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1357,14 +1357,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1377,14 +1377,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1397,14 +1397,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1417,14 +1417,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1437,14 +1437,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1457,14 +1457,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1477,14 +1477,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1497,14 +1497,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1517,14 +1517,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1537,14 +1537,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1557,14 +1557,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1577,14 +1577,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1597,14 +1597,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚♟♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1617,14 +1617,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1637,14 +1637,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1657,14 +1657,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1677,14 +1677,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1697,14 +1697,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1717,14 +1717,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1737,14 +1737,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1757,14 +1757,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1777,14 +1777,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1797,14 +1797,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔ ♟", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1817,14 +1817,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1837,14 +1837,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1857,14 +1857,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1877,14 +1877,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1897,14 +1897,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1917,14 +1917,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1937,14 +1937,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1957,14 +1957,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1977,14 +1977,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -1997,14 +1997,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2017,14 +2017,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2037,14 +2037,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2057,14 +2057,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2077,14 +2077,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2097,14 +2097,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2117,14 +2117,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ♟", " ♚", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2137,14 +2137,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2157,14 +2157,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ♟♟", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2177,14 +2177,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2197,14 +2197,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2217,14 +2217,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2237,14 +2237,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2257,14 +2257,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2277,14 +2277,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2297,14 +2297,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2317,14 +2317,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚♟♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2337,14 +2337,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♚", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2357,14 +2357,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2377,14 +2377,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2397,14 +2397,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♚♙ ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2417,14 +2417,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2437,14 +2437,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟♟ ♙ ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2457,14 +2457,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2477,14 +2477,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♘ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2497,14 +2497,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2517,14 +2517,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2537,14 +2537,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2557,14 +2557,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2577,14 +2577,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♗ ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2597,14 +2597,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2617,14 +2617,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2637,14 +2637,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2657,14 +2657,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♗ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2677,14 +2677,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2697,14 +2697,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ♔ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2717,14 +2717,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2737,14 +2737,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2757,14 +2757,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2777,14 +2777,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♖ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2797,14 +2797,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", "♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2817,14 +2817,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♚", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2837,14 +2837,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟♔ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2857,14 +2857,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2877,14 +2877,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2897,14 +2897,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2917,14 +2917,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2937,14 +2937,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2957,14 +2957,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔♗ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2977,14 +2977,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -2997,14 +2997,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3017,14 +3017,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3037,14 +3037,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3057,14 +3057,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♞ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3077,14 +3077,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3097,14 +3097,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3117,14 +3117,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3137,14 +3137,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♘ ♚", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3157,14 +3157,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♘ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3177,14 +3177,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3197,14 +3197,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3217,14 +3217,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ♞ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3237,14 +3237,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3257,14 +3257,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3277,14 +3277,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3297,14 +3297,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♞ ♟♚♙", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3317,14 +3317,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3337,14 +3337,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♗ ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3357,14 +3357,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♖ ♔", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3377,14 +3377,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3397,14 +3397,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3417,14 +3417,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3437,14 +3437,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3457,14 +3457,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3477,14 +3477,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3497,14 +3497,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3517,14 +3517,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ♚", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3537,14 +3537,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3557,14 +3557,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙ ", "♝ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3577,14 +3577,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♝ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3597,14 +3597,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ♝", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3617,14 +3617,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3637,14 +3637,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ♔♙", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3657,14 +3657,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3677,14 +3677,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3697,14 +3697,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♘ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3717,14 +3717,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♝ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3737,14 +3737,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3757,14 +3757,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3777,14 +3777,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3797,14 +3797,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3817,14 +3817,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♗", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3837,14 +3837,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3857,14 +3857,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3877,14 +3877,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3897,14 +3897,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3917,14 +3917,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔ ♝ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3937,14 +3937,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♝ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3957,14 +3957,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♖", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3977,14 +3977,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -3997,14 +3997,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♖ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4017,14 +4017,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4037,14 +4037,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♖ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4057,14 +4057,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4077,14 +4077,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4097,14 +4097,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♝ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4117,14 +4117,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♝ ♟♟ ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4137,14 +4137,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♝ ♟", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4157,14 +4157,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4177,14 +4177,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♝ ♘", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4197,14 +4197,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4217,14 +4217,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙ ♗", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4237,14 +4237,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♝ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4257,14 +4257,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♝ ♚", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4277,14 +4277,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔", " ♝ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4297,14 +4297,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4317,14 +4317,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", "♚ ♝ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4337,14 +4337,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ♝♟♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4357,14 +4357,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4377,14 +4377,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4397,14 +4397,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4417,14 +4417,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♚♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4437,14 +4437,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4457,14 +4457,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4477,14 +4477,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4497,14 +4497,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4517,14 +4517,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4537,14 +4537,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♔ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4557,14 +4557,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4577,14 +4577,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♗", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4597,14 +4597,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♙ ♜ ", " ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4617,14 +4617,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4637,14 +4637,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ♙ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4657,14 +4657,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4677,14 +4677,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4697,14 +4697,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♜", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4717,14 +4717,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4737,14 +4737,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♖ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4757,14 +4757,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔ ", "♖ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4777,14 +4777,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♜ ", " ♖ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4797,14 +4797,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♖ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4817,14 +4817,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4837,14 +4837,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4857,14 +4857,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4877,14 +4877,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4897,14 +4897,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4917,14 +4917,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4937,14 +4937,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♜ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4957,14 +4957,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♖ ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4977,14 +4977,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -4997,14 +4997,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5017,14 +5017,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5037,14 +5037,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5057,14 +5057,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♜ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5077,14 +5077,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ♜ ", "♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5097,14 +5097,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5117,14 +5117,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5137,14 +5137,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5157,14 +5157,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5177,14 +5177,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♜ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5197,14 +5197,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♖ ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5217,14 +5217,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♜ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5237,14 +5237,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♖ ♙ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5257,14 +5257,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5277,14 +5277,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♜♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5297,14 +5297,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ♔", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5317,14 +5317,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5337,14 +5337,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♖ ", " ♚", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5357,14 +5357,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♖ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5377,14 +5377,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♜ ", " ♔", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5397,14 +5397,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔ ", " ♖ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5417,14 +5417,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5437,14 +5437,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5457,14 +5457,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙ ", " ♜ ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5477,14 +5477,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5497,14 +5497,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5517,14 +5517,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ♔", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5537,14 +5537,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ♙ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5557,14 +5557,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5577,14 +5577,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5597,14 +5597,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔♙ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5617,14 +5617,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♛ ♙ ", " ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5637,14 +5637,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙ ", " ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5657,14 +5657,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙ ", " ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5677,14 +5677,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♙♔ ♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5697,14 +5697,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♙♔ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5717,14 +5717,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♙ ", "♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5737,14 +5737,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙", " ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5757,14 +5757,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5777,14 +5777,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♖♙", " ♚ ♔", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5797,14 +5797,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5817,14 +5817,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5837,14 +5837,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♔ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5857,14 +5857,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5877,14 +5877,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5897,14 +5897,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5917,14 +5917,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ♛", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5937,14 +5937,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ♛ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5957,14 +5957,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♛ ♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5977,14 +5977,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ♛ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -5997,14 +5997,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6017,14 +6017,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♙ ", "♔ ♞ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6037,14 +6037,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6057,14 +6057,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♞ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6077,14 +6077,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♔ ", " ♛ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6097,14 +6097,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♕♖ ", "♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6117,14 +6117,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ♛", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6137,14 +6137,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6157,14 +6157,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6177,14 +6177,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6197,14 +6197,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙♘", " ♔", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6217,14 +6217,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♘ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6237,14 +6237,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙ ", "♗ ♔ ♝ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6257,14 +6257,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6277,14 +6277,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6297,14 +6297,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♚ ♝ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6317,14 +6317,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6337,14 +6337,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♙♔ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6357,14 +6357,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙", " ♗ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6377,14 +6377,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6397,14 +6397,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6417,14 +6417,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♔ ♞ ♖", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6437,14 +6437,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♘ ", "♞ ♔ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6457,14 +6457,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♞ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6477,14 +6477,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", "♗ ♚ ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6497,14 +6497,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6517,14 +6517,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♟ ", " ♔ ♚ ♝ ♖", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6537,14 +6537,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♙ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6557,14 +6557,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ♟", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6577,14 +6577,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟♚♟ ", "♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6597,14 +6597,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♚ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6617,14 +6617,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6637,14 +6637,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ♟♝♟♟♟ ", " ♜", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6657,14 +6657,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♙♙ ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6677,14 +6677,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♜ ♜ ", " ♚ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6697,14 +6697,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { "♜ ", "♜ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6717,14 +6717,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, { board: []string{ @@ -6737,14 +6737,14 @@ func TestBoardConvertsBackToItself(t *testing.T) { " ", " ♖ ♝ ♞ ", }, - canWhiteKingsideCastle: false, + canWhiteKingsideCastle: false, canWhiteQueensideCastle: false, - canBlackKingsideCastle: false, + canBlackKingsideCastle: false, canBlackQueensideCastle: false, - halfMoveClock: 1, - fullMoveNumber: 0, - enPassantTargetSquare: "", - turn: "White", + halfMoveClock: 1, + fullMoveNumber: 0, + enPassantTargetSquare: "", + turn: "White", }, } for _, tc := range ts { diff --git a/api/entities.go b/api/entities.go index 3478e2c..9d7a86f 100644 --- a/api/entities.go +++ b/api/entities.go @@ -1,6 +1,7 @@ package api import ( + "errors" "fmt" "strings" ) @@ -38,8 +39,6 @@ func (g game) String() string { return sb.String() } -var defaultGame, _ = newGameFromFEN("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1") - func (g game) clone() game { clonedPieces := make([]map[xy]piece, len(g.pieces)) clonedKings := make([]piece, len(g.kings)) @@ -271,14 +270,14 @@ var movementDeltasByPieceType = map[pieceType][]xy{ } var ( - errNotInBounds = fmt.Errorf("piece is not in board bounds") - errFriendlyPieceInDestination = fmt.Errorf("there is a friendly piece in destination") - errPieceInBetween = fmt.Errorf("there is a piece between source and destination") - errPieceBlockingPawn = fmt.Errorf("there is a piece blocking pawn from moving forwards or en passant") - errPawnCantCapture = fmt.Errorf("pawn can't capture because there is no opponent piece (including en passant)") - errCantCastle = fmt.Errorf("king can't castle, because pieces moved, pieces in middle or squares threatened") - errCantPromote = fmt.Errorf("pawn can't promote because wrong position or invalid promotion piece type") - errActionLeavesKingThreatened = fmt.Errorf("action leaves king in a check") + errNotInBounds = errors.New("piece is not in board bounds") + errFriendlyPieceInDestination = errors.New("there is a friendly piece in destination") + errPieceInBetween = errors.New("there is a piece between source and destination") + errPieceBlockingPawn = errors.New("there is a piece blocking pawn from moving forwards or en passant") + errPawnCantCapture = errors.New("pawn can't capture because there is no opponent piece (including en passant)") + errCantCastle = errors.New("king can't castle, because pieces moved, pieces in middle or squares threatened") + errCantPromote = errors.New("pawn can't promote because wrong position or invalid promotion piece type") + errActionLeavesKingThreatened = errors.New("action leaves king in a check") ) var ( diff --git a/api/fen.go b/api/fen.go index d06c2b9..6e70b97 100644 --- a/api/fen.go +++ b/api/fen.go @@ -1,6 +1,7 @@ package api import ( + "errors" "fmt" "regexp" "strconv" @@ -8,27 +9,27 @@ import ( ) var ( - errFENRegexDoesNotMatch = fmt.Errorf("FEN string does not match FEN regexp") - errFENRankLargerThan8Squares = fmt.Errorf("FEN string has a rank larger than 8 squares") - errFENDuplicateKing = fmt.Errorf("FEN string has more than one king of the same color") - errFENKingMissing = fmt.Errorf("FEN string is lacking one of the kings") - errFENImpossibleEnPassant = fmt.Errorf("impossible en passant target square, since there's no pawn of the right color next to it") - errFENImpossibleBlackCastle = fmt.Errorf("impossible for black to castle since king has moved") - errFENImpossibleBlackQueensideCastle = fmt.Errorf("impossible for black to queenside castle since rook has moved") - errFENImpossibleBlackKingsideCastle = fmt.Errorf("impossible for black to kingside castle since rook has moved") - errFENImpossibleWhiteCastle = fmt.Errorf("impossible for white to castle since king has moved") - errFENImpossibleWhiteQueensideCastle = fmt.Errorf("impossible for white to queenside castle since rook has moved") - errFENImpossibleWhiteKingsideCastle = fmt.Errorf("impossible for white to kingside castle since rook has moved") - errFENPawnInImpossibleRank = fmt.Errorf("impossible rank for pawn") - errFENBlackHasMoreThan16Pieces = fmt.Errorf("black has more than 16 pieces") - errFENWhiteHasMoreThan16Pieces = fmt.Errorf("white has more than 16 pieces") - rxFEN = regexp.MustCompile(`^([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8}) ([wb]) ([KQkq]{0,4}|-) ([a-h][36]|-) ([0-9]{1,3}) ([0-9]{1,3})$`) + errFENRegexDoesNotMatch = errors.New("FEN string does not match FEN regexp") + errFENRankLargerThan8Squares = errors.New("FEN string has a rank larger than 8 squares") + errFENDuplicateKing = errors.New("FEN string has more than one king of the same color") + errFENKingMissing = errors.New("FEN string is lacking one of the kings") + errFENImpossibleEnPassant = errors.New("impossible en passant target square, since there's no pawn of the right color next to it") + errFENImpossibleBlackCastle = errors.New("impossible for black to castle since king has moved") + errFENImpossibleBlackQueensideCastle = errors.New("impossible for black to queenside castle since rook has moved") + errFENImpossibleBlackKingsideCastle = errors.New("impossible for black to kingside castle since rook has moved") + errFENImpossibleWhiteCastle = errors.New("impossible for white to castle since king has moved") + errFENImpossibleWhiteQueensideCastle = errors.New("impossible for white to queenside castle since rook has moved") + errFENImpossibleWhiteKingsideCastle = errors.New("impossible for white to kingside castle since rook has moved") + errFENPawnInImpossibleRank = errors.New("impossible rank for pawn") + errFENBlackHasMoreThan16Pieces = errors.New("black has more than 16 pieces") + errFENWhiteHasMoreThan16Pieces = errors.New("white has more than 16 pieces") // TODO check if King is in checkmate that couldn't have been reached // TODO don't allow more than 8 pawns of any color // TODO check if both are in check ) func newGameFromFEN(s string) (game, error) { + rxFEN := regexp.MustCompile(`^([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8})\/([1-8rnbqkpRNBQKP]{1,8}) ([wb]) ([KQkq]{0,4}|-) ([a-h][36]|-) ([0-9]{1,3}) ([0-9]{1,3})$`) matches := rxFEN.FindAllStringSubmatch(s, -1) if matches == nil { return game{}, errFENRegexDoesNotMatch diff --git a/api/notation_parser.go b/api/notation_parser.go index 217b2f7..c0ec0af 100644 --- a/api/notation_parser.go +++ b/api/notation_parser.go @@ -1,14 +1,15 @@ package api import ( + "errors" "fmt" "regexp" "strings" ) var ( - errInvalidRegexp = fmt.Errorf("invalid regexp; this should not happen") - errDidntMatchAnyRegexp = fmt.Errorf("invalid state at step TODO: didn't match any regexp") + errInvalidRegexp = errors.New("invalid regexp; this should not happen") + errDidntMatchAnyRegexp = errors.New("invalid state at step TODO: didn't match any regexp") ) type actionPattern struct { diff --git a/handlers.go b/handlers.go index 47c617a..09bd633 100644 --- a/handlers.go +++ b/handlers.go @@ -1,3 +1,5 @@ +// +build !tinygo + package main import ( diff --git a/main.go b/main.go index f38d100..e8fdb09 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,4 @@ -// +build !js +// +build !tinygo package main diff --git a/main_js.go b/main_js.go index f25a05e..3fdccb5 100644 --- a/main_js.go +++ b/main_js.go @@ -1,4 +1,4 @@ -// +build js,wasm +// +build tinygo package main @@ -8,6 +8,8 @@ import ( "github.com/marianogappa/cheesse/api" ) +var a = api.New() + func DefaultGame(this js.Value, p []js.Value) interface{} { return js.ValueOf(convertOutputGame(a.DefaultGame())) } @@ -60,7 +62,7 @@ func convertToInputGame(v js.Value) api.InputGame { innerBoard []string outerBoard = api.Board{} ) - if !board.IsNull() && !board.IsUndefined() { + if board != js.Null() && board != js.Undefined() { innerBoard = make([]string, board.Length()) for i := range innerBoard { innerBoard[i] = jsString(board.Index(i)) @@ -85,21 +87,21 @@ func convertToInputGame(v js.Value) api.InputGame { } func jsBool(j js.Value) bool { - if j.IsUndefined() || j.IsNull() { + if j == js.Undefined() || j == js.Null() { return false } return j.Bool() } func jsInt(j js.Value) int { - if j.IsUndefined() || j.IsNull() || j.IsNaN() { + if j == js.Undefined() || j == js.Null() { return 0 } return j.Int() } func jsString(j js.Value) string { - if j.IsUndefined() || j.IsNull() { + if j == js.Undefined() || j == js.Null() { return "" } return j.String()