feftywacky / Thrawn

UCI compliant NNUE chess engine @ ~2800 ELO
GNU General Public License v3.0
0 stars 0 forks source link

won't print to terminal bug #1

Closed feftywacky closed 10 months ago

feftywacky commented 10 months ago

init bishop and rooks attacks using magic numbers, but for some reason nothing couts to terminal anymore

feftywacky commented 10 months ago

issue was array<array<uint64_t, 4096>, 64> rook_attacks used 2mb of memory was caused stack overflow used vector instead to allocate memory on the heap/dynamic memory allocation resized vector to get 64rows x 4096cols