chess_rb 0.0.5 → 0.0.6
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/position.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: 427fc40a1bed7fae46c1103c2fa2665b41d408d8
|
4
|
+
data.tar.gz: 26a28952f6505b8a0457541b32e4538f815db1db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39acb0dc3cf940a3f7cc24d650244814a704bd57bbf9431ad8d221457a10ebfb5e7a5fafa5a422578befab9886c36569467ec636f17cc5debaa2ba97f49a5498
|
7
|
+
data.tar.gz: f6dc8f44250f165d5bdff3b3aa61d3651aa17a2bfb8f062a48ba9482c24732720c530f904fda1abfc37ec41435812aa3d5f20adad10596eff401a2d55adbffe5
|
data/lib/chess_rb/position.rb
CHANGED
@@ -264,7 +264,7 @@ class ChessRB::Position
|
|
264
264
|
if (pawn_move = piece_on(move.to).type == 'P') &&
|
265
265
|
(move.from_rank - move.to_rank).abs == 2
|
266
266
|
|
267
|
-
@fen_components[3] = move.
|
267
|
+
@fen_components[3] = move.square[0]
|
268
268
|
@fen_components[3] += (t == 'w') ? '3' : '6'
|
269
269
|
else
|
270
270
|
@fen_components[3] = '-'
|