zugzwang 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24720d6c09dbb9b22d3f090011872c5b5c9042082877dd010e8584d79409c6bd
4
- data.tar.gz: 2184948964ebdab0250e4ad73b4ec25be07e99b294b83f83eddc613e7b53ea3d
3
+ metadata.gz: 1423fd6eedd11419fab5ba7b86355ac7490830dfb295f9fd821988940081537e
4
+ data.tar.gz: 9e2d722935063392c43d46e40bfee767b91f9b368bcb4f468de45c2ee6e43ea1
5
5
  SHA512:
6
- metadata.gz: df3ad9c2fe7f52c4f894906e9c233197e9faeb34d81b6331b503d1c57c9f56a4c1674b39d774f12eeba57a1e29afd3fbd0c718a93e8d7e987260476421c5d1fe
7
- data.tar.gz: 5bff1407beff6c1f405bdede301b2eaf02cec62886f3639d0c5dd0f30e1b7f2f3454c6873306506576dc650de9800f45ef706921c296c2ccb05ea01bd2defe17
6
+ metadata.gz: 0fc9788558e03c46315835c184a1704dd33c0802c14df2ccd08416d48ac10ca1f5d27237da01ab01fae0d7fdc1b93d8e558b9ca9ee35a380bb457aa9277fd763
7
+ data.tar.gz: 23a9618fca3c06965a14ea641c50ba555de516d540aee77c6e152d343822e697c0a7ab1ec220ec7953fd25763b35eaba26a00c53af62dca050c6d887c046f176
data/README.md CHANGED
@@ -7,7 +7,7 @@ Lightweight CLI for converting the metadata of PGN files from Lichess' game data
7
7
 
8
8
  ## PGN files
9
9
 
10
- PGN (**P**ost-**G**ame **N**otation) files are plain-text files that provide records of chess games along with their metadata.
10
+ PGN (**P**ortable **G**ame **N**otation) files are plain-text files that provide records of chess games along with their metadata.
11
11
 
12
12
  ### Lichess PGN format
13
13
 
@@ -69,7 +69,7 @@ This is the section that the CLI is concerned with, and will produce a database
69
69
 
70
70
  #### Game record
71
71
 
72
- This section contains the actual record of the chess game, the moves are given in <a href="https://en.wikipedia.org/wiki/Algebraic_notation_(chess)">Algebraic Chess Notation</a>, along with the time on the clock for each move.
72
+ This section contains the actual record of the chess game, the moves are given in <a href="https://en.wikipedia.org/wiki/Algebraic_notation_(chess)">Algebraic Chess Notation</a>, along with the time on the clock for each move.
73
73
 
74
74
  Additionally, some games may include Stockfish evaluation for each move.
75
75
 
data/lib/zugzwang.rb CHANGED
@@ -17,10 +17,11 @@ module Zugzwang
17
17
  WhiteRatingDiff: {type: :integer},
18
18
  BlackRatingDiff: {type: :integer},
19
19
  WhiteTitle: {type: :string, size: 5},
20
+ BlackTitle: {type: :string, size: 5},
20
21
  ECO: {type: :string, size: 3},
21
22
  Opening: {type: :string},
22
23
  TimeControl: {type: :string, size: 15},
23
24
  Termination: {type: :string, size: 20},
24
25
  Variant: {type: :string}
25
26
  }
26
- end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module Zugzwang
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/test.pgn ADDED
@@ -0,0 +1,31 @@
1
+ [Event "Rated Bullet tournament https://lichess.org/tournament/yc1WW2Ox"]
2
+ [Site "https://lichess.org/PpwPOZMq"]
3
+ [White "Abbot"]
4
+ [Black "Costello"]
5
+ [Result "0-1"]
6
+ [UTCDate "2017.04.01"]
7
+ [UTCTime "11:32:01"]
8
+ [WhiteElo "2100"]
9
+ [BlackElo "2000"]
10
+ [WhiteRatingDiff "-4"]
11
+ [BlackRatingDiff "+1"]
12
+ [WhiteTitle "FM"]
13
+ [BlackTitle "GM"]
14
+ [ECO "B30"]
15
+ [Opening "Sicilian Defense: Old Sicilian"]
16
+ [TimeControl "300+0"]
17
+ [Termination "Time forfeit"]
18
+
19
+ 1. e4 { [%eval 0.17] [%clk 0:00:30] } 1... c5 { [%eval 0.19] [%clk 0:00:30] }
20
+ 2. Nf3 { [%eval 0.25] [%clk 0:00:29] } 2... Nc6 { [%eval 0.33] [%clk 0:00:30] }
21
+ 3. Bc4 { [%eval -0.13] [%clk 0:00:28] } 3... e6 { [%eval -0.04] [%clk 0:00:30] }
22
+ 4. c3 { [%eval -0.4] [%clk 0:00:27] } 4... b5? { [%eval 1.18] [%clk 0:00:30] }
23
+ 5. Bb3?! { [%eval 0.21] [%clk 0:00:26] } 5... c4 { [%eval 0.32] [%clk 0:00:29] }
24
+ 6. Bc2 { [%eval 0.2] [%clk 0:00:25] } 6... a5 { [%eval 0.6] [%clk 0:00:29] }
25
+ 7. d4 { [%eval 0.29] [%clk 0:00:23] } 7... cxd3 { [%eval 0.6] [%clk 0:00:27] }
26
+ 8. Qxd3 { [%eval 0.12] [%clk 0:00:22] } 8... Nf6 { [%eval 0.52] [%clk 0:00:26] }
27
+ 9. e5 { [%eval 0.39] [%clk 0:00:21] } 9... Nd5 { [%eval 0.45] [%clk 0:00:25] }
28
+ 10. Bg5?! { [%eval -0.44] [%clk 0:00:18] } 10... Qc7 { [%eval -0.12] [%clk 0:00:23] }
29
+ 11. Nbd2?? { [%eval -3.15] [%clk 0:00:14] } 11... h6 { [%eval -2.99] [%clk 0:00:23] }
30
+ 12. Bh4 { [%eval -3.0] [%clk 0:00:11] } 12... Ba6? { [%eval -0.12] [%clk 0:00:23] }
31
+ 13. b3?? { [%eval -4.14] [%clk 0:00:02] } 13... Nf4? { [%eval -2.73] [%clk 0:00:21] } 0-1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zugzwang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edwin Onuonga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-03 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,6 +128,7 @@ files:
128
128
  - lib/zugzwang/connection/populate.rb
129
129
  - lib/zugzwang/helpers.rb
130
130
  - lib/zugzwang/version.rb
131
+ - test.pgn
131
132
  - zugzwang.gemspec
132
133
  homepage: https://www.github.com/eonu/zugzwang
133
134
  licenses: