fsmosca / chess-artist

A python script that can annotate chess games in pgn file with static evaluation or search score of an engine, can annotate an epd file with acd, acs, bm, and ce opcodes, can test engine with epd test suite and can generate chess puzzles.
GNU General Public License v3.0
69 stars 18 forks source link

Python 3.8 and the newest python-chess #75

Closed ChameleonRed closed 4 years ago

ChameleonRed commented 4 years ago

C:\tmp\chess>chess-artist -i ..\chess\one.pgn -o one.png --eval search -e c:\root\chess\stockfish\11\stockfish_20011801_x64_bmi2.exe --job analyze Analyzing engine: Stockfish 11 64 BMI2 Annotating game 1... Traceback (most recent call last): File "chess-artist.py", line 2583, in File "chess-artist.py", line 2571, in main File "chess-artist.py", line 1843, in AnnotatePgn File "chess-artist.py", line 1654, in SaveMaterialBalance UnboundLocalError: local variable 'nextNode' referenced before assignment [22440] Failed to execute script chess-artist

ChameleonRed commented 4 years ago

Nothing special.

[Event "Rated Blitz game"]
[Site "https://lichess.org/Zk2LNyA8"]
[Date "2020.04.20"]
[Round "-"]
[White "kakarot99"]
[Black "Cezary_Wagner"]
[Result "1-0"]
[WhiteElo "1800"]
[BlackElo "1494"]
[ECO "B50"]
[UTCDate "2020.04.20"]
[UTCTime "19:46:44"]
[Variant "Standard"]
[TimeControl "300+3"]
[Termination "Normal"]

1. e4 c5 2. Nf3 d6 3. c3 Nf6 4. Qc2 Nc6 5. d4 cxd4 6. cxd4 Nxe4 7. Qxe4 
1-0
fsmosca commented 4 years ago

To make it analyze before move 8, use the option --movestart. For example to start the analysis at move 2, add the option: --movestart 2

ChameleonRed commented 4 years ago

Thank you looks strange but works.

śr., 13 maj 2020 o 02:39 fsmosca notifications@github.com napisał(a):

  • Chess artist by default starts its analysis at move 8.
  • That particular game ends in 7 moves.

To make it analyze before move 8, use the option --movestart. For example to start the analysis at move 2, add the option: --movestart 2

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fsmosca/chess-artist/issues/75#issuecomment-627674232, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIH4MBV7UQSCYXCUERTIA3RRHT3PANCNFSM4M6L27BQ .

fsmosca commented 4 years ago