vitogit / pgn-tactics-generator

Generate chess puzzles / tactics from a pgn file
MIT License
114 stars 28 forks source link

Puzzle incomplete? #29

Closed scchess closed 2 years ago

scchess commented 2 years ago

I use the attached PGN file and the following command:

python3 main.py --games=A.pgn --stockfish=stockfish --depth=12

After a series of outputs I got:

Puzzle incomplete
Generating new puzzle...
k . . . r . . .
. b . . . . . R
. . . . . . . .
. . . . . . . .
. P . . . . . .
. . . . . . P .
P . . . . P . P
. . . . R . K .
Material Value: 2.5
Evaluating Best Move...
Best Move: e8e1
   CP: None
   Mate: 1
Evaluating Legal Moves...
Move: e8e1
   CP: None
   Mate: 0
Move: e8d8
   CP: 1015
   Mate: None
Move: e8c8
   CP: 1038
   Mate: None
... and 20 more moves
Not Going Deeper:
   Ambiguous: False
   Game Over: True
   Has Best Move: True
Puzzle incomplete

A.pgn.zip

scchess commented 2 years ago

I thought depth was the Stockfish engine depth, it was actually the number of moves.