just_chess 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/just_chess/game_state.rb +2 -1
- data/lib/just_chess/pieces/pawn.rb +1 -1
- data/lib/just_chess/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5186354e9db002dd6613734861ca814ccea3753b399c4187070a8e9ecd9fb654
|
4
|
+
data.tar.gz: 7e046eb71b17b5edfcc6f4c4e612c45b1a3139ab08ad5472b96ccaa38faeb425
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caeee8d99463adb0a5c09d3422c456a38d57857db78bb1ae3b84606d0624cc9632335ca95a0be2c5d00518b85b1e50710eb42737bac7a8c29f4389c3c4f90223
|
7
|
+
data.tar.gz: ea82ca8a6ff509df44d04c4585f7e16643408e31cbd926774c0d1be6ad46c05f8d0dadf8e2ac9d05f28e11f0ed1478910e397f425f7ca554e76b522b59325dc3
|
@@ -268,7 +268,8 @@ module JustChess
|
|
268
268
|
if to.occupied?
|
269
269
|
to
|
270
270
|
else
|
271
|
-
|
271
|
+
en_passant_square = from.piece.is_a?(Pawn) && from.piece.en_passant_square(from, self)
|
272
|
+
if en_passant_square && en_passant_square.x == to.x
|
272
273
|
squares.find_by_piece_id(last_double_step_pawn_id)
|
273
274
|
else
|
274
275
|
nil
|
data/lib/just_chess/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: just_chess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Humphreys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|