chess_rb 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chess_rb/notation.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c14774a8f64325b51a583c90bcc65a5018810e27
|
4
|
+
data.tar.gz: b5c5d6343b4ac44314979cafc9feeb699f38fcac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51de3745fd9f85b012ec0e9b9018f2abc69e8577c693af2bccaf32c91e94265d34858b4cd2af6b9c98240ad2077b547d6391f8d34c751d4392190e67e92f1425
|
7
|
+
data.tar.gz: ba886ddb58b1d0f9c04271a84626bf3706f1b19675b7ab978c38e76693e3c6a7dda62db868866a454105ca0375926283f571aebf03eca20ff31eca2a5e79dd53
|
data/lib/chess_rb/notation.rb
CHANGED
@@ -35,7 +35,7 @@ class ChessRB::Notation
|
|
35
35
|
|
36
36
|
san += "=#{move.promotion}" if move.promotion
|
37
37
|
|
38
|
-
if !board.squares_with(['WK'
|
38
|
+
if !board.squares_with(['WK']).empty? && !board.squares_with(['BK']).empty?
|
39
39
|
undo_info = board.piece_on(move.to)
|
40
40
|
board.make_move(move)
|
41
41
|
if (board.check?)
|