Skip to content

Commit a702054

Browse files
committed
added a board constructor using fen starting position
1 parent fd907b7 commit a702054

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/bitbishop/board.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ class Board {
6363
*/
6464
Board(const std::string& fen);
6565

66+
[[nodiscard]] static Board StartingPosition() noexcept {
67+
return {"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"};
68+
}
69+
6670
[[nodiscard]] static Board Empty() noexcept { return {"8/8/8/8/8/8/8/8 w KQkq - 0 1"}; }
6771

6872
/**

0 commit comments

Comments
 (0)