projects
/
capablanca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8d865da
)
Fix Shogi Knight-demotion bug
author
H.G. Muller
<h.g.muller@hccnet.nl>
Mon, 11 Oct 2010 19:40:48 +0000 (21:40 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Mon, 11 Oct 2010 19:40:48 +0000 (21:40 +0200)
lasker-2.2.3/src/gameproc.c
patch
|
blob
|
history
diff --git
a/lasker-2.2.3/src/gameproc.c
b/lasker-2.2.3/src/gameproc.c
index
ec6918c
..
8398499
100644
(file)
--- a/
lasker-2.2.3/src/gameproc.c
+++ b/
lasker-2.2.3/src/gameproc.c
@@
-416,7
+416,7
@@
static int was_promoted(struct game *g, int f, int r)
if (g->moveList[i].piecePromotionTo) {
switch(g->moveList[i].moveString[0]) { // [HGM] return original piece type rather than just TRUE
case 'P': return PAWN;
- case 'N': return KNIGHT;
+ case 'N': return HONORABLEHORSE; // !!! this is Shogi, so no KNIGHT !!!
case 'B': return BISHOP;
case 'R': return ROOK;
case 'L': return LANCE;