Skip to content

Commit

Permalink
fix bug, promotion on move
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhs committed May 22, 2016
1 parent 06eaa38 commit b60720c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chess.php
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ public function move($sanOrArray)
if (
$sanOrArray['from'] === self::algebraic($move['from']) &&
$sanOrArray['to'] === self::algebraic($move['to']) &&
$sanOrArray['promotion'] === $move['promotion']
($move['promotion'] == null || $sanOrArray['promotion'] == $move['promotion'])
) {
$moveArray = $move;
break;
Expand Down

0 comments on commit b60720c

Please sign in to comment.