is there an annotation tool for UCI (like crafty annotate)?

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

Moderator: Ras

casaschi
Posts: 164
Joined: Wed Dec 23, 2009 1:57 pm

is there an annotation tool for UCI (like crafty annotate)?

Post by casaschi »

I was looking for a script/software to annotate a pgn file using a UCI engine with similar output to the "crafty annotate" command (html view of the game showing where the engine thinks there is a better move than played by a certain score margin).

I know some of the interfaces (such as scid) can do something similar, but I was rater looking to a console script/software.

thanks.

paolo
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: is there an annotation tool for UCI (like crafty annotat

Post by beachknight »

casaschi wrote:I was looking for a script/software to annotate a pgn file using a UCI engine with similar output to the "crafty annotate" command (html view of the game showing where the engine thinks there is a better move than played by a certain score margin).

I know some of the interfaces (such as scid) can do something similar, but I was rater looking to a console script/software.

thanks.

paolo
Welcome aboard, Paolo.

I second your request on a gui which supports annotations with a WB or UCI engine.

Best,
hi, merhaba, hallo HT
govert
Posts: 270
Joined: Thu Jan 15, 2009 12:52 pm

Re: is there an annotation tool for UCI (like crafty annotat

Post by govert »

beachknight wrote:
casaschi wrote:I was looking for a script/software to annotate a pgn file using a UCI engine with similar output to the "crafty annotate" command (html view of the game showing where the engine thinks there is a better move than played by a certain score margin).

I know some of the interfaces (such as scid) can do something similar, but bI was rater looking to aconsole script/software.

thanks.

paolo
Welcome aboard, Paolo.

I second your request on a gui which supports annotations with a WB or UCI engine.

Best,
ehh...
:?:
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: is there an annotation tool for UCI (like crafty annotat

Post by beachknight »

govert wrote:
beachknight wrote:
casaschi wrote:I was looking for a script/software to annotate a pgn file using a UCI engine with similar output to the "crafty annotate" command (html view of the game showing where the engine thinks there is a better move than played by a certain score margin).

I know some of the interfaces (such as scid) can do something similar, but bI was rater looking to aconsole script/software.

thanks.

paolo
Welcome aboard, Paolo.

I second your request on a gui which supports annotations with a WB or UCI engine.

Best,
ehh...
:?:
enhancement :)

best,
hi, merhaba, hallo HT
casaschi
Posts: 164
Joined: Wed Dec 23, 2009 1:57 pm

Re: is there an annotation tool for UCI (like crafty annotat

Post by casaschi »

beachknight wrote:
I second your request on a gui which supports annotations with a WB or UCI engine.
No, no, no... it's not a request for a GUI, just a plain console script/software that could run from a terminal and could be used in shell scripts.
I dont need and dont want a GUI... that already exists, scid can do some kind of game annotation.

Less is more... your enhancement is rejected :-)

Paolo
govert
Posts: 270
Joined: Thu Jan 15, 2009 12:52 pm

Re: is there an annotation tool for UCI (like crafty annotat

Post by govert »

LOL!
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: is there an annotation tool for UCI (like crafty annotat

Post by beachknight »

casaschi wrote:
beachknight wrote:
I second your request on a gui which supports annotations with a WB or UCI engine.
No, no, no... it's not a request for a GUI, just a plain console script/software that could run from a terminal and could be used in shell scripts.
I dont need and dont want a GUI... that already exists, scid can do some kind of game annotation.

Less is more... your enhancement is rejected :-)

Paolo
Just found a gui that annotates a game: ChessPad 2


Code: Select all

[Event "ICT 10"]
[Site "Leiden"]
[Date "2010.05.29"]
[Round "6"]
[White "Rybka"]
[Black "Deep Sjeng"]
[Result "0-1"]
[ECO "C45"]
[EventDate "2010.05.28"]
[Opening "Scotch game"]
[Source "Harun Taner"]
[PlyCount "121"]
[EventType "swiss"]
[EventRounds "9"]
[EventCountry "NED"]

1. e4 e5 2. Nf3 Nc6 3. d4 exd4 4. Nxd4 Bc5 5. Be3 Qf6 6. c3 Nge7 7. Bc4 Ne5
8. Be2 Qg6 9. O-O d6 10. f4 Qxe4 11. Bf2 Bxd4 12. cxd4 N5g6 13. g3 Bh3 14. Bf3
Qf5 15. Re1 d5 16. Qb3 O-O 17. Nc3 c6 18. Qxb7 Rfb8 19. Qc7 Qf6 20. b3 Nf5
21. Rad1 Rc8 22. Qa5 Nf8 23. Na4 Qg6 24. Qd2 Nh4 25. Bh1 Qg4 26. Be3 Ne6 27. Qf2
Qg6 28. Nb2 Bf5 29. Rc1 Be4 30. Bd2 Bxh1 31. Kxh1 Nf5 32. Nd3 Nfxd4 33. Ne5 Qf6
34. b4 a5 35. bxa5 Rc7 36. Bb4 h5 37. Red1 c5 38. Rxc5 Nxc5 39. Bxc5 Nc6 40. Bb6
Re7 41. Rxd5 Rae8 42. Bd4 Nxe5 43. Kg1 Qc6 44. Rxe5 Rxe5 45. fxe5 Rd8 46. Qf4
Qc4 47. Be3 Rd1+ 48. Kg2 Qxa2+ 49. Qf2 Qxa5 50. Qf5 Qa2+ 51. Kh3 Rh1 52. Qc8+
Kh7 53. Qf5+ g6 54. Qf2 Qe6+ 55. Kg2 Qc6+ 56. Kh3 Qd7+ 57. Kg2 Qd5+ 58. Kh3 Kg8
59. Bb6 Qxe5 60. Bc5 Qe6+ 61. Kg2 0-1

Annotated game with only 2 seconds per move:

Code: Select all

[Event "ICT 10"]
[Site "Leiden"]
[Date "2010.05.29"]
[Round "6"]
[White "Rybka"]
[Black "Deep Sjeng"]
[Result "0-1"]
[ECO "C45"]
[EventDate "2010.05.28"]
[Opening "Scotch game"]
[Source "Harun Taner"]
[PlyCount "121"]
[EventType "swiss"]
[EventRounds "9"]
[EventCountry "NED"]

1. e4 e5 (1... Nc6 2. Nc3 e6 3. Nf3 Bb4 4. a3 Ba5 5. b4 Bb6 6. b5 Nd4 7. Na4
Nxf3+ 8. Qxf3 Bd4 9. Rb1 {15/29}) 2. Nf3 (2. Nc3 Nf6 3. Nf3 Bb4 4. Bc4 d6 5. O-O
O-O 6. Nd5 Nxd5 7. Bxd5 c6 8. Bc4 d5 9. Bd3 {15/29}) 2... Nc6 3. d4 exd4 4. Nxd4
Bc5 5. Be3 Qf6 6. c3 Nge7 7. Bc4 Ne5 8. Be2 Qg6 (8... d6 9. O-O Qg6 10. Kh1 O-O
11. Nd2 Ng4 12. Bf4 Nc6 13. f3 Nge5 14. N2b3 Bb6 15. Qd2 {14/-1}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 51. h3 Rd2 52. Qe3 Re2 53. Qd4 Qa8+ 54. Kg1
Qa5 55. Kg2 Rxe5 56. Be3 {16/-379}) 48. Kg2 Qxa2+ 49. Qf2 Qxa5 50. Qf5 Qa2+ (
50... g6 51. Qf6 Re1 52. Bh6 Qxe5 53. Qxe5 Rxe5 54. Kf3 g5 55. h3 Kh7 56. Bf8 f5
57. Bb4 Rd5 58. Ke3 {16/-384}) 51. Kh3 Rh1 52. Qc8+ Kh7 53. Qf5+ g6 54. Qf2 Qe6+
55. Kg2 Qc6+ 56. Kh3 Qd7+ 57. Kg2 Qd5+ 58. Kh3 Kg8 (58... Ra1 59. Qf6 Ra2 60.
Bf2 Re2 61. e6 Qxe6+ 62. Qxe6 fxe6 63. Kg2 e5 64. Kf3 Rc2 65. Ba7 Rxh2 66. Bb8
e4+ 67. Kxe4 Re2+ 68. Kf4 {17/-416}) 59. Bb6 (59. Qf6 Re1 60. Bh6 Qxe5 61. Qxe5
Rxe5 62. Bd2 Re2 63. Bf4 Kh7 64. Bg5 f5 65. Bf6 Kh6 66. Bd4 {15/-394}) 59...
Qxe5 60. Bc5 (60. Qf3 Ra1 61. Bf2 Qb5 62. g4 Qd7 63. Kg2 hxg4 64. Qb3 Rc1 65.
Be3 Qc6+ 66. Kg3 Rc4 67. Qb8+ Kg7 {14/-604}) 60... Qe6+ (60... Re1 $1 {14/-973})
61. Kg2 0-1
ChessPad2 can use both wb and uci engines.

:mrgreen:

Best,
hi, merhaba, hallo HT
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: is there an annotation tool for UCI (like crafty annotat

Post by beachknight »

Ooops.

http://www.wmlsoftware.com/index.html

Crafty 23.2 was used for annotations.

Best,
hi, merhaba, hallo HT
shiv
Posts: 351
Joined: Sat Apr 01, 2006 2:03 am

Re: is there an annotation tool for UCI (like crafty annotat

Post by shiv »

casaschi wrote:I was looking for a script/software to annotate a pgn file using a UCI engine with similar output to the "crafty annotate" command (html view of the game showing where the engine thinks there is a better move than played by a certain score margin).

I know some of the interfaces (such as scid) can do something similar, but I was rater looking to a console script/software.

thanks.

paolo
As UCI aims to give more power to the GUI, command line auto-annotation is likely to be philosophically against UCI (though it can be done).
govert
Posts: 270
Joined: Thu Jan 15, 2009 12:52 pm

Re: is there an annotation tool for UCI (like crafty annotat

Post by govert »

shiv wrote:
casaschi wrote:I was looking for a script/software to annotate a pgn file using a UCI engine with similar output to the "crafty annotate" command (html view of the game showing where the engine thinks there is a better move than played by a certain score margin).

I know some of the interfaces (such as scid) can do something similar, but I was rater looking to a console script/software.

thanks.

paolo
As UCI aims to give more power to the GUI, command line auto-annotation is likely to be philosophically against UCI (though it can be done).
More correctly: UCI aims to give more power to the software which is controlling the engine This software can be a gui, or a command line script.