Skip to content

Commit 71907da

Browse files
authored
bugfix (#41)
* fast dirty compare (without casting types) * constexpr
1 parent d020de1 commit 71907da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

position.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ template <typename PieceC = EnginePiece, typename = std::enable_if_t<is_piece_en
9494
bool _chess960{};
9595

9696
public:
97-
static inline const std::string START_FEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
98-
static inline const std::string START_CHESS960_FEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w HAha - 0 1";
97+
static inline constexpr auto START_FEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
98+
static inline constexpr auto START_CHESS960_FEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w HAha - 0 1";
9999
// Legal move generation functions
100100
template <MoveGenType type = MoveGenType::ALL, Color c> void legals(Movelist &out) const {
101101

0 commit comments

Comments
 (0)