Chess Game Analyzer

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Frank Quisinsky
Posts: 6911
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Re: Chess Game Analyzer (v34)

Post by Frank Quisinsky »

Hi Ferdinand,

I can added the tool on my webpage too.
That's no problem!

Best
Frank
JohnS
Posts: 215
Joined: Sun Feb 24, 2008 2:08 am

Re: Chess Game Analyzer

Post by JohnS »

Excellent tool thanks Ferdinand.

Here's a simple batch file to run it. It saves typing and you can adjust the options easily.

set engine=stockfish.exe
set games=games.pgn
set threads=1
set hash=32
set time=100
set start=1
set finish=200

echo %engine% > inbat
echo %games% >> inbat
echo %threads% >> inbat
echo %hash% >> inbat
echo %time% >> inbat
echo %start% >> inbat
echo %finish% >> inbat
echo >> inbat

game_analyzer_v34 < inbat
Ferdy
Posts: 4846
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Chess Game Analyzer (v34)

Post by Ferdy »

Frank Quisinsky wrote:Hi Ferdinand,

I can added the tool on my webpage too.
That's no problem!

Best
Frank
You can add it Frank thanks.
Ferdy
Posts: 4846
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Chess Game Analyzer

Post by Ferdy »

JohnS wrote:Excellent tool thanks Ferdinand.

Here's a simple batch file to run it. It saves typing and you can adjust the options easily.

set engine=stockfish.exe
set games=games.pgn
set threads=1
set hash=32
set time=100
set start=1
set finish=200

echo %engine% > inbat
echo %games% >> inbat
echo %threads% >> inbat
echo %hash% >> inbat
echo %time% >> inbat
echo %start% >> inbat
echo %finish% >> inbat
echo >> inbat

game_analyzer_v34 < inbat
That's very nice thanks.
Frank Quisinsky
Posts: 6911
Joined: Wed Nov 18, 2009 7:16 pm
Location: Gutweiler, Germany
Full name: Frank Quisinsky

Re: Chess Game Analyzer (v34)

Post by Frank Quisinsky »

Hi Ferdinand,

OK, will be ready in the next hour.

Thanks!
Great work again!

Best
Frank
User avatar
Kirk
Posts: 5702
Joined: Sat Mar 11, 2006 3:44 am

Re: Chess Game Analyzer

Post by Kirk »

Hi!

I really like this idea. Will you be making a new GUI for this in the future?
“He knew all the tricks, dramatic irony, metaphor, pathos, puns, parody, litotes and... satire. He was vicious”
Ferdy
Posts: 4846
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Chess Game Analyzer

Post by Ferdy »

Kirk wrote:Hi!

I really like this idea. Will you be making a new GUI for this in the future?
This is no longer an idea it is now real :) . I really have no plans on gui, there are already so many nice gui's out there free and commercial.

I still try to improve it, with the goal in mind on how to translate the engine thinking into something understandable to the human.

I am no longer satisfied looking on those pv' from the engine. Something has to be translated like the "engine is planing to create a passer in a-file". Or "With the idea of a more mobile pieces", followed by a relevant variation. I know chessbase fritz gui has already this but seemed to have not improved.
Ferdy
Posts: 4846
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Chess Game Analyzer, version 36

Post by Ferdy »

Code: Select all

v36
1. Added polyglot book, to not analyze game move if it is in the book.
   The book filename should be book.bin, and should be located in the
   same directory of this tool.
2. Added option to set blunder margin in cp. If this value is low, expect
   to have more analysis lines that will be shown.
3. Modify Annotator tag, added blunder margin in cp
4. Added position NAG (+/-, +- ) to a line "color is threatening" variation.
Chess Game Analyzer v36.0

enter engine filename? sf6.exe
enter pgn filename? a2.pgn
enter number of threads to be used by the engine? 1
enter Hash in mb? 64
enter analysis time/pos in ms? 500
enter the move number to start the analysis? 1
enter the move number to end the analysis? 30
enter blunder margin in centipawn 1 pawn = 100 cp? 30
enter 1 to exclude analysis of book moves (0 or 1)? 1
Download, rename the file from *.png to *.exe. The polyglot book.bin is not included in the pack.
https://app.box.com/s/19womxj40819zfy1uqaw5bbmfmvus6x6

[pgn]
[Event "20th European Teams"]
[Site "Reykjavik ISL"]
[Date "2015.11.20"]
[Round "7.1"]
[White "Vachier-Lagrave, Maxime"]
[Black "Svidler, Peter"]
[Result "1/2-1/2"]
[Annotator "Stockfish 6 64 POPCNT (10.000s/pos, thread=1, blunder_margin=30cp)"]
[BlackElo "2745"]
[ECO "E60"]
[WhiteElo "2765"]

1.d4 { Book } 1...Nf6 { Book } 2.c4 { Book } 2...g6 { Book } 3.f3 { Book } 3...Nc6 { Book } 4.Nc3 { Book } 4...d5 { Book } 5.cxd5 { Book } 5...Nxd5 { Book } 6.e4 { Book } 6...Nxc3 { Book } 7.bxc3 { Book } 7...Bg7 8.Bb5 $10 { +0.11/20 } ( { Better is } 8.h4 O-O 9.h5 Na5 10.Be3 e5 11.d5 $14 { +0.43/19 } ) ( { Also playable is } 8.Rb1 O-O 9.h4 h5 10.Bd3 e5 11.d5 $14 { +0.41/19 } ) 8...O-O 9.Ne2 Na5 10.Be3 Be6 11.Bf2 a6 12.Bd3 Bc4 13.O-O $1 b5 $1 14.Bxc4 Nxc4 15.Nc1 c5 16.Nb3 $1 cxd4 17.cxd4 Qd6 18.Qe2 $1 Qa3 19.Rab1 Rac8 $14 { +0.33/21 } ( { Better is } 19...Rfc8 20.Rfc1 e6 21.Rc2 Qe7 22.Rd1 Bh6 $10 { -0.02/21 } ) ( { A fine line to try is } 19...e6 20.h3 Rfc8 21.Rfd1 Qe7 22.Rbc1 Bh6 $10 { -0.00/21 } ) ( { White is threatening } 19...-- 20.Nc5 e6 21.Rfd1 Rfe8 22.e5 Bf8 23.Rb3 $14 { +0.32/21 } ) 20.Rfd1 Na5 $14 { +0.74/21 } ( { Better is } 20...e5 21.d5 Qd6 22.a4 Bh6 23.axb5 axb5 $10 { +0.18/19 } ) ( { Worthy of consideration is } 20...Rc6 21.Nc5 Rfc8 22.e5 e6 23.Rb3 Qa5 $10 { +0.23/19 } ) ( { White is threatening } 20...-- 21.Nc5 e6 22.e5 Rfe8 23.h3 Bf8 24.Rb3 $14 { +0.45/21 } ) 21.Nc5 Nc6 22.e5 $14 { +0.79/20 } ( { Unsatisfactory is } 22.d5 $2 { due to } 22...Nd4 23.Rxd4 Bxd4 24.Bxd4 Rxc5 $10 { -0.15/23 } ) 22...e6 23.f4 $1 Rc7 24.d5 exd5 25.Rxd5 Rd8 26.Rxd8+ $14 { +0.96/24 } ( { Not reliable is } 26.Rdd1 $6 { on the grounds of } 26...Bf8 27.Ne4 Qa4 28.Bb6 Rxd1+ $14 { +0.67/23 } ) 26...Nxd8 $8 27.Qd2 Nb7 28.Nxb7 $14 { +0.61/23 } ( { Better is } 28.Rb3 Qa5 29.Qxa5 Nxa5 30.Ra3 Bf8 31.Rxa5 $14 { +0.96/23 } ) ( { Black is threatening } 28.-- Rxc5 29.Bxc5 Nxc5 30.Rf1 Ne6 31.Qc2 Bh6 $17 { -2.32/23 } ) 28...Rxb7 29.Rc1 $1 h5 $14 { +1.00/22 } ( { Better is } 29...Rb8 30.Rc7 Qf8 31.Bc5 Qe8 32.Qd6 Rc8 $14 { +0.64/19 } ) ( { Another possiblity is } 29...Qf8 30.Rc6 Qe8 31.Rd6 Rb8 32.Rxa6 Qc8 $14 { +0.90/19 } ) ( { White is threatening } 29...-- 30.Bc5 Qxc1+ 31.Qxc1 Rc7 32.Qa3 Rc6 33.Be7 $18 { +6.50/23 } ) 30.Rc8+ Kh7 $8 31.h3 Qe7 32.Qd6 $10 { -0.00/23 } ( { Better is } 32.Rc6 Bh6 33.Be3 Rd7 34.Rd6 Rxd6 35.exd6 $14 { +0.67/24 } ) ( { A good alternative is } 32.Bc5 Rd7 33.Bxe7 Rxd2 34.a3 Rd4 35.g3 $14 { +0.31/24 } ) ( { Black is threatening } 32.-- Rd7 33.Qe2 Qb4 34.Be3 Bh6 35.g3 Qe4 $10 { -0.10/22 } ) 32...Qd7 33.Qxd7 Rxd7 $8 34.Bh4 Rd4 $1 35.Bg5 Bh6 $1 36.Bf6 Bg7 37.Bg5 $1 Bh6 $1 38.Bf6 Bg7 39.Bg5 $1 1/2-1/2
[/pgn]
flok

Re: Chess Game Analyzer

Post by flok »

Hi,

I'm also interested in the python source (Linux user here).
Ferdy
Posts: 4846
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Chess Game Analyzer

Post by Ferdy »

Link just sent.