projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6596dc9
)
Fixed a bug in move_from_uci(): En passant captures were not handled
author
Tord Romstad
<tord@cm-84.215.83.169.getinternet.no>
Tue, 14 Dec 2010 11:07:37 +0000 (12:07 +0100)
committer
Tord Romstad
<tord@cm-84.215.83.169.getinternet.no>
Tue, 14 Dec 2010 11:07:37 +0000 (12:07 +0100)
correctly.
src/move.cpp
patch
|
blob
|
history
diff --git
a/src/move.cpp
b/src/move.cpp
index
5ea874e
..
2a18c1c
100644
(file)
--- a/
src/move.cpp
+++ b/
src/move.cpp
@@
-75,7
+75,7
@@
Move move_from_uci(const Position& pos, const std::string& str) {
// En passant move? We assume that a pawn move is an en passant move
// if the destination square is epSquare.
if (to == pos.ep_square() && piece == piece_of_color_and_type(us, PAWN))
- make_ep_move(from, to);
+ return make_ep_move(from, to);
// Is this a castling move? A king move is assumed to be a castling move
// if the destination square is occupied by a friendly rook, or if the