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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/game_logic.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 332c370c589e98a08b37e03c361317322600511f918a8667a8830e176ed7bac8
4
- data.tar.gz: f66908986c5b9e1ae09943a23cc8eea48a642b69ce51da3f6c2d5c091a0c0848
3
+ metadata.gz: 012e2a3f6be44c4d117d14d0403be0a039d3f003716e899885470ef1fc4459fa
4
+ data.tar.gz: c11fd3a325de4e9d743fe26a15ec5cf0f91a09bf280e99027966d9ba09fc3d09
5
5
  SHA512:
6
- metadata.gz: b225a87c0c37fcaf75d169fb4125b18cdc0adc04708efee206733e3f3a28b788d385bd79d43540bc81f7c49bcf5d9dc0e575f7760c173daf175c4836a896e9b6
7
- data.tar.gz: f78be11ce467f85861584da97ae493d89a0c230f133fe629ee0b90140bd70d50d70709493c894c8517cd3882a2af561dfcdf86743e3b5c21b8ec8841400bc3af
6
+ metadata.gz: 570cedffbcfe74a5427954fa454b889feaf4a962147e99125cbc3d6f4904415f0077180c05af56035e4f67cab0191d3ce69b8263de15e034938cee7de0f9da7a
7
+ data.tar.gz: d45df24d49ff075283b84565cecd31eab976e792fea274718498f3db1b5e62257d08f336d217ee179740a85fb2c8d0d8802d10b34d8cb89b46ee686a811d81c1
@@ -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.find_next_moves(fen).empty?
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chess_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Ellison