chstan / Chess-Engine

A weak C language chess engine
5 stars 1 forks source link

Memory Errors #17

Closed chstan closed 12 years ago

chstan commented 12 years ago

There appears to be a memory error overwriting certain indices in knightMove (and potentially others). I would use valgrind to investigate, but valgrind does not support 64 bit binaries and so the project must be recompiled and linked with -m32 in the makefile. One obstacle stands in the way of doing this, which is that the new GSB and LSB functions rely on 64 bit instructions. We will have to make 32 bit versions of these and keep them in the case where we need to run valgrind.

chstan commented 12 years ago

Had to do with incorrect usage of the SQ macro and BOARDINDEX (whose use has been deprecated). Fixed now.