Fix ScorePosition() for MiniShogi.
authorYann Dirson <ydirson@free.fr>
Wed, 28 Sep 2011 21:25:24 +0000 (23:25 +0200)
committerYann Dirson <ydirson@free.fr>
Mon, 4 Nov 2013 21:55:37 +0000 (22:55 +0100)
commit8614cbca5eed4d6b23e5c4ad32ab6210ff8c69bd
tree3c83c55f918920afe0dc89fa11a606c9a2a91d57
parentfd2d3b3b66801eba904e700842604033c9af8c23
Fix ScorePosition() for MiniShogi.

Gcc's stack-smashing protection combined with glibc's -D_FORTIFY_SOURCE
detected with a segfault that we were using 9x9-board offsets on our 5x5
board.  This patch abstracts the relevant hardcoded constants and provides
correct values for MiniShogi.
gnushogi/eval.c