Hello Ferdinand, I have a request for you about "Chess Game Analyzer".
I chat often with the guys who manage the "on-line analyze of games" on the free open source chess server http://lichess.org/
Currently Stockfish is used to generate analyzes like this : http://fr.lichess.org/I166mbxd/white
But your "Chess Game Analyzer" is clearly better than that, so would you agree to share your code to port it on Lichess ?
Thanks,
Vincent
Ferdy wrote:Takes pgn file and analyze the games in it. If you only want to analyze 1 game, make sure the file only contains 1 game. By default all games in the pgn file will be analyzed. The output will be in analyzedGame.pgn
This tool was mainly tested with Sf6. Any uci engines that supports multipv mode and depth, multipv, score cp/mate and time values output in its analysis line can be used by this tool.
The exe is from python source code and is using python-chess library to parse moves and positions of the pgn file. If somebody is interested the script source that is not easy to understand is available . Just send a PM or post here. I am still refactoring the code, but seems this is already workable.
Unfortunately the hash is defaulted to 32mb. I will create a new compile with settable hash size on version 34. In the meantime just try this. See download link below.
enter engine filename? sf6.exe
enter pgn filename? 1.pgn
enter number of threads to be used by the engine? 1
enter analysis time/pos in ms? 10000
enter the move number to start the analysis? 15
enter the move number to end the analysis? 40
Vinvin wrote:Hello Ferdinand, I have a request for you about "Chess Game Analyzer".
I chat often with the guys who manage the "on-line analyze of games" on the free open source chess server http://lichess.org/
Currently Stockfish is used to generate analyzes like this : http://fr.lichess.org/I166mbxd/white
But your "Chess Game Analyzer" is clearly better than that, so would you agree to share your code to port it on Lichess ?
Thanks,
Vincent
Yes they can use it, but wait a little bit since I will be releasing a new version today.
"""
I About the script
1. It takes a pgn file with games in it and analyze those
games there one by one if there are more than one game
2. It mainly uses Stockfish uci engine during development.
Other uci engines can be used provided those engines support
multipv mode
II. Application references and dependencies
1. Developed under python 2.7.6
2. Using python-chess library version 0.13.0
site: http://python-chess.readthedocs.org/en/v0.13.0/
III Release notes
1. Release date: January 4, 2016
2. Files:
a. game_analyzer_v38.py
b. python-chess-0.13.0.tar
c. book.bin
IV. Chess Game Analyzer Development log
A. Notes:
1. Interesting positions are saved in puzzle.epd
2. Existing comments in the original pgn will not be copied to the analyzed game
3. Original pgn file will not be changed by the script
4. Installation of python 2.7.6 or later (not tested though) and
python-chess v0.13.0 on your computer are needed for the script to work
B. Changes:
v38
1. Use command line options instead of interactive user input
v37
1. Copy the original headers completely into analyzedGame.pgn
2. Tested using Stockfish 7 under OS windows 7
3. Calculation of position complexity by "pv move changes"
starts at iteration depth equal to 9
4. Print statements are now converted to function for python 3.0 and later
compatibility
"""
I About the script
1. It takes a pgn file with games in it and analyze those
games there one by one if there are more than one game
2. It mainly uses Stockfish uci engine during development.
Other uci engines can be used provided those engines support
multipv mode
II. Application references and dependencies
1. Developed under python 2.7.6
2. Using python-chess library version 0.13.0
site: http://python-chess.readthedocs.org/en/v0.13.0/
III Release notes
1. Release date: January 4, 2016
2. Files:
a. game_analyzer_v38.py
b. python-chess-0.13.0.tar
c. book.bin
IV. Chess Game Analyzer Development log
A. Notes:
1. Interesting positions are saved in puzzle.epd
2. Existing comments in the original pgn will not be copied to the analyzed game
3. Original pgn file will not be changed by the script
4. Installation of python 2.7.6 or later (not tested though) and
python-chess v0.13.0 on your computer are needed for the script to work
B. Changes:
v38
1. Use command line options instead of interactive user input
v37
1. Copy the original headers completely into analyzedGame.pgn
2. Tested using Stockfish 7 under OS windows 7
3. Calculation of position complexity by "pv move changes"
starts at iteration depth equal to 9
4. Print statements are now converted to function for python 3.0 and later
compatibility
It would be helpful to implement backward analysis. ie Start analyzing from last move.
Thanks!
I think it is against the spirit of the tool. I choose forward analysis, so that I can measure how difficult the position is. When the analyzing engine experienced difficulties (thru position complexity calculation) of the position and when the human move and the engine bestmove are the same, then that move will receive !! symbol, or perhaps ! symbol depending further on how big the score difference between bestmove 1 and bestmove 2 (thru multipv=2) is. If I will do backward analysis, perhaps the engine will no longer experience difficulties of the position or something that measuring difficulty of the position is very difficult, because it already knew some positions.