cm-engine-runner 1.2.1 → 1.2.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "cm-engine-runner",
3
3
  "description": "Abstraction layer to run chess engines, supports opening books",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -80,8 +80,8 @@ export class StockfishRunner extends EngineRunner {
80
80
  }
81
81
  this.score = tmpScore
82
82
  }
83
- // match = line.match(/^bestmove ([a-h][1-8])([a-h][1-8])([qrbk])?/) // ponder is not always included
84
- match = line.match(/^bestmove ([a-h][1-8])([a-h][1-8])([qrbk])?( ponder ([a-h][1-8])?([a-h][1-8])?)?/)
83
+ // match = line.match(/^bestmove ([a-h][1-8])([a-h][1-8])([qrbn])?/) // ponder is not always included
84
+ match = line.match(/^bestmove ([a-h][1-8])([a-h][1-8])([qrbn])?( ponder ([a-h][1-8])?([a-h][1-8])?)?/)
85
85
  if (match) {
86
86
  this.engineState = ENGINE_STATE.READY
87
87
  if (match[4] !== undefined) {