chess-moments 1.1.2 → 1.1.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.
Files changed (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -47,6 +47,24 @@ The first level splits between variants and subvariants played in the chess game
47
47
  Returns a two level deep array of chess moments.
48
48
  It is useful for hiding future moves in chess training.
49
49
 
50
+ ## Extras
51
+
52
+ ### .addMomentToTree()
53
+
54
+ Adds a new move to the chess tree
55
+
56
+ ### .getNextMoments()
57
+
58
+ Move forward in the chess tree
59
+
60
+ ### .getPrevMoment()
61
+
62
+ Move back in the chess tree
63
+
64
+ ### .momentsToPgn()
65
+
66
+ Transform the chess tree into PGN
67
+
50
68
  ## JSON output
51
69
 
52
70
  The basic PGN file `1. e4 e5 *` will generated the following chess moments in JSON format:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chess-moments",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "PGN parser that transforms PGN files into chess \"moments\"",
5
5
  "main": "index.js",
6
6
  "files": [