chess_validator 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/game_logic.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 012e2a3f6be44c4d117d14d0403be0a039d3f003716e899885470ef1fc4459fa
|
4
|
+
data.tar.gz: c11fd3a325de4e9d743fe26a15ec5cf0f91a09bf280e99027966d9ba09fc3d09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 570cedffbcfe74a5427954fa454b889feaf4a962147e99125cbc3d6f4904415f0077180c05af56035e4f67cab0191d3ce69b8263de15e034938cee7de0f9da7a
|
7
|
+
data.tar.gz: d45df24d49ff075283b84565cecd31eab976e792fea274718498f3db1b5e62257d08f336d217ee179740a85fb2c8d0d8802d10b34d8cb89b46ee686a811d81c1
|
data/lib/game_logic.rb
CHANGED
@@ -8,7 +8,7 @@ module ChessValidator
|
|
8
8
|
def find_game_result(fen_notation)
|
9
9
|
fen = PGN::FEN.new(fen_notation)
|
10
10
|
board = BoardLogic.build_board(fen)
|
11
|
-
no_moves = MoveLogic.
|
11
|
+
no_moves = MoveLogic.next_moves(fen).empty?
|
12
12
|
checkmate_result = checkmate_value(fen, board, no_moves)
|
13
13
|
|
14
14
|
if checkmate_result
|