Code: Select all
PS D:\Projekte\Chess\Other Engines> .\Bit-Genie_100ssse3.exe
Bit Genie by Aryan Parekh
Hash table initialized with 2 Mb ( 125000 entries )
uci
id name Bit-Genie 1.0.0
id author Aryan Parekh
option name Hash type spin default 2 min 2 max 3000
option name Clear Hash type button
uciok
position startpos moves e2e4 g8f6 b1c3 d7d5 e4d5 f6d5 f1c4 c7c6 g1f3 d8a5 e1g1 c8e6 c4b3 b8d7 f3d4 d5c3 d2c3 e6b3 c2b3 e7e5 d4f5 g7g6 f5d6 f8d6 d1d6 a5c5 d6d2 f7f5 d2h6 f5f4 c1d2 e8c8 a1d1 d7f6 h6h3 c8c7 b3b4 c5e7 f1e1 d8d7 e1e2 h8d8 h3h4 f6d5 h4h6 f4f3 g2f3 d5f4 d2f4 d7d1 g1g2 e7f7 e2e5 c7c8 e5c5 d8f8 h6h3 f7d7 h3h6 f8e8 f4e3 b7b6 c5c4 d7d5 b2b3 e8e7 h6f8 c8d7 f8b8 b6b5 c4c5 d5d6 b8a7 d7e6 a7a8 e6f7 a8c6 d6c6 c5c6 d1a1 c6a6 a1b1 g2g3 e7e6 a6a7 e6e7 a7a5 b1g1 g3f4 e7b7 a5a8 f7e6 a8e8 e6f7 e8h8 f7f6 e3d4 f6e6 h8e8 e6f7 e8h8 f7e6 h8d8 b7f7 f4e4 g1e1 d4e3 f7a7 d8d2 a7a8 e4d4 a8d8 d4c5 d8d2 e3d2 e1e2 d2e3 e2a2 c5b5 a2a1 b5c4 a1h1 b4b5 h1h2 b5b6 h2h4 c4b5
go
info depth 1 seldepth 2 nodes 53 score cp -59 time 0 pv h4h1
info depth 2 seldepth 3 nodes 265 score cp -88 time 1 pv h4h3 f3f4
info depth 3 seldepth 4 nodes 1069 score cp -59 time 3 pv h4h5 b5a4 h5h1
info depth 4 seldepth 6 nodes 1944 score cp -88 time 5 pv h4h5 b5a4 h5h3 f3f4
info depth 5 seldepth 7 nodes 12212 score cp -69 time 8 pv h4h5 b5a4 h5h3 b6b7 h3f3
info depth 6 seldepth 9 nodes 52217 score cp -154 time 16 pv e6d7 b6b7 d7c7 b5a6 h4h1 c3c4
info depth 7 seldepth 9 nodes 173587 score cp -116 time 36 pv h4h5 b5c6 h5a5 b6b7 a5a6 e3b6 a6a2
info depth 8 seldepth 11 nodes 356784 score cp -356 time 84 pv h4h5 b5a6 h5d5 b6b7 d5d6 e3b6 d6b6 a6b6
info depth 9 seldepth 13 nodes 2359826 score cp -337 time 301 pv h4h5 b5a6 h5d5 b6b7 d5d6 e3b6 d6b6 a6b6 h7h5
PS D:\Projekte\Chess\Other Engines>
For me it just quits after depth 9. I use the procompiled release build from github on a Ryzen 3600. Strange.
Edit:
Well I cloned the git, compiled a debug build.
...in position.cpp
Code: Select all
#if defined (_MSC_VER)
inline Square get_lsb(uint64_t b)
{
assert(b);
unsigned long idx;
_BitScanForward64(&idx, b);
return to_sq(idx);
}
The assert triggers because the expression "pieces.bitboards[King] & friend_bb()" from line 299 evaluates to zero.
The release build will just call _BitScanForward64 and pass the uninitialized variable index on to to_sq(idx). Famous C++ undefined behavior. This is why I don't personally like using C++ btw!
Code: Select all
Bit-Genie.exe!get_lsb(unsigned __int64 b) Zeile 44 C++
Bit-Genie.exe!Position::move_is_legal(Move move) Zeile 299 C++
Bit-Genie.exe!`MovePicker::next'::`2'::<lambda_1>::operator()(Move m) Zeile 128 C++
Bit-Genie.exe!MovePicker::next(Move & move) Zeile 136 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 139 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 147 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 147 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 147 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 147 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 150 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 147 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 150 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 147 C++
Bit-Genie.exe!`anonymous namespace'::pvs(Position & position, Search & search, TTable & tt, int depth, int alpha, int beta) Zeile 147 C++
Bit-Genie.exe!search_position(Position & position, Search & search, TTable & tt) Zeile 296 C++
Bit-Genie.exe!uci_input_loop(int argc, char * * argv) Zeile 129 C++
Bit-Genie.exe!main(int argc, char * * argv) Zeile 27 C++
[Externer Code]