just_chess 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/just_chess/game_state.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0e2c58c7ac26f5cf759ed10df12757b617eabb9
|
4
|
+
data.tar.gz: c944150e11832eb65365cd194120c3422baae1c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9ac9d0a2cce8147d63eeb2a7da96de3fb6fbc4ed2fea070908c24ef2065a49c408c3f183184517bb762bdac43d49bfec8e1c2cca90f0eaec36998201c0164a3
|
7
|
+
data.tar.gz: e384a392f12a2230b0f0a3b0585109f3a13c9ff5bcd9dafa5f2d87e233f12089f3e8e12030331a95b6b5c2d65a24a99b9ef86468c52a2c3dd334bda95a54d245
|
@@ -282,7 +282,7 @@ module JustChess
|
|
282
282
|
rook_from_y = from.y
|
283
283
|
rook_from = squares.find_by_x_and_y(rook_from_x, rook_from_y)
|
284
284
|
|
285
|
-
rook_to_x = vector.direction.x > 0 ? (from.x + 1) : (from.x -1)
|
285
|
+
rook_to_x = vector.direction.x > 0 ? (from.x + 1) : (from.x - 1)
|
286
286
|
rook_to_y = from.y
|
287
287
|
rook_to = squares.find_by_x_and_y(rook_to_x, rook_to_y)
|
288
288
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Humphreys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|