projects
/
uci2wb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
25e4f2e
)
Also use new start FEN in UCCI after Pawn push
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Thu, 30 Oct 2014 14:52:29 +0000 (15:52 +0100)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Thu, 30 Oct 2014 15:00:50 +0000 (16:00 +0100)
Irreversible (= forward) Pawn moves now also are recognized as
irreversible moves, next to captures.
UCI2WB.c
patch
|
blob
|
history
diff --git
a/UCI2WB.c
b/UCI2WB.c
index
a6c229f
..
3baeeba
100644
(file)
--- a/
UCI2WB.c
+++ b/
UCI2WB.c
@@
-120,7
+120,7
@@
Play(int nr)
FromFEN(iniPos + 4); // in XQ iniPos always has just "fen " prefix
\r
for(i=0; i<nr; i++) {
\r
int from=Sqr(move[i], 0), to=Sqr(move[i], 2);
\r
- if(board[to]) last = i;
\r
+ if(board[to] || (board[from]|32) == 'p' && move[i][1] != move[i][3]) last = i;
\r
board[to] = board[from]; board[from] = 0;
\r
}
\r
return last;
\r