cm-chess 3.4.2 → 3.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chess",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "It's like chess.js, but in ES6 and can handle variations (tree-structured move history)",
5
5
  "main": "./src/Chess.js",
6
6
  "type": "module",
package/src/Chess.js CHANGED
@@ -331,7 +331,6 @@ export class Chess {
331
331
  * @returns {string} "b" or "w" the color to move in the main variation
332
332
  */
333
333
  turn(move = this.lastMove()) {
334
- console.log("move", move)
335
334
  let factor = 0
336
335
  if (this.setUpFen()) {
337
336
  const fenParts = this.setUpFen().split(" ")
package/test/TestChess.js CHANGED
@@ -182,7 +182,6 @@ Kc4 7. Qb4+ Kd5 8. Qc5#) 5. Bc5# 1-0`)
182
182
  1-0`
183
183
  chess.loadPgn(pgn)
184
184
  chess.undo(chess.history()[5])
185
- // console.log(chess.history());
186
185
  assert.equal(chess.history().length, 5)
187
186
  assert.equal(chess.plyCount(), 5)
188
187
  assert.equal(chess.fenOfPly(0), "8/8/b2Bq3/7Q/3kp3/5pP1/8/3K4 w - - 0 1")