projects
/
gnushogi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7f6340b
)
Fix another hardcored 9x9-board hardcoded value.
author
Yann Dirson
<ydirson@free.fr>
Wed, 28 Sep 2011 22:03:51 +0000 (
00:03
+0200)
committer
Yann Dirson
<ydirson@free.fr>
Sun, 29 Sep 2013 13:40:16 +0000 (15:40 +0200)
gnushogi/eval.c
patch
|
blob
|
history
diff --git
a/gnushogi/eval.c
b/gnushogi/eval.c
index
355acf3
..
8e7bd06
100644
(file)
--- a/
gnushogi/eval.c
+++ b/
gnushogi/eval.c
@@
-1291,7
+1291,8
@@
PawnValue(short sq, short side)
{
if (crow(c1, sq) == 2) /* pawn on 3d rank */
{
- if (board[(c1 == black) ? (sq + 27) : (sq - 27)] == pawn)
+ if (board[(c1 == black) ?
+ (sq + 3*NO_COLS) : (sq - 3*NO_COLS)] == pawn)
{
/* opposing pawn has been moved (even column == (sq & 1)) */