Chess Tools

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

Moderators: hgm, Rebel, chrisw

User avatar
Ozymandias
Posts: 1533
Joined: Sun Oct 25, 2009 2:30 am

Re: Polyglot book creator

Post by Ozymandias »

Ferdy wrote:
Ozymandias wrote:
Ferdy wrote:The book andscacs_white_win.bin was created but with 0KB size, meaning the pgn-extract probably did not find a won game by Andscacs based from the filter in player name and win checkbox that was set to on.
No, there's only a dozen draws. The draw box isn't checked by default? If not, check it.
You should be clear, you said you use the default.
I downloaded SF 9 games from CCRL 40/40 and made a book with default parameters
The default is this.

Image


Then you did not actually use default but disable the black, so this is.

Image

I have been analyzing your problem for so long. Then now you tell me to enable the draw. Sorry I have no time for this.
Letting out the part of the phrase you don't understand, doesn't make it go away. The correct quote was the one from your first reply.

As for not remembering what all the default values looked like... forgive me for not having an eidetic memory, but I can't check the program at the moment of posting (different partitions).

I was trying to help you with a bug in your program, I have no problem with it, because I use batch files for polyglot. I thought it could be a nice alternative, but if it isn't, that's no skin off my nose.
User avatar
Ovyron
Posts: 4556
Joined: Tue Jul 03, 2007 4:30 am

Re: Chess Tools

Post by Ovyron »

Ferdy wrote:I will use Aiquiri in the next beta.
Great work Ferdy! I've realized you're indeed programming some kinf of AI that is using existing chess engine to make its move choices! I wonder if this is the beginning of something huge, or if I'm putting the cart before the horse.

But here's a logo, stirrer and all :)

Image
Your beliefs create your reality, so be careful what you wish for.
User avatar
Nordlandia
Posts: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Chess Tools

Post by Nordlandia »

Is there any existing tools that can calculate total game duration based on pgn clock information?
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Chess Tools

Post by Ferdy »

Ovyron wrote:
Ferdy wrote:I will use Aiquiri in the next beta.
Great work Ferdy! I've realized you're indeed programming some kinf of AI that is using existing chess engine to make its move choices! I wonder if this is the beginning of something huge, or if I'm putting the cart before the horse.

But here's a logo, stirrer and all :)

Image
Looks good :)
MikeGL
Posts: 1010
Joined: Thu Sep 01, 2011 2:49 pm

Re: Chess Tools

Post by MikeGL »

Ovyron wrote:
Ferdy wrote:I will use Aiquiri in the next beta.
Great work Ferdy! I've realized you're indeed programming some kinf of AI that is using existing chess engine to make its move choices! I wonder if this is the beginning of something huge, or if I'm putting the cart before the horse.

But here's a logo, stirrer and all :)

Image
Nice pun. Sounds like "I Query" which is what the adapter really does.
I told my wife that a husband is like a fine wine; he gets better with age. The next day, she locked me in the cellar.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Chess Tools

Post by Ferdy »

Nordlandia wrote:Is there any existing tools that can calculate total game duration based on pgn clock information?
I think protools by Ed can.
User avatar
Guenther
Posts: 4605
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Chess Tools

Post by Guenther »

Ferdy wrote:
Nordlandia wrote:Is there any existing tools that can calculate total game duration based on pgn clock information?
I think protools by Ed can.
Well I know a better tool ;-) and Protools don't work correctly in calculation.
https://rwbc-chess.de

trollwatch:
Chessqueen + chessica + AlexChess + Eduard + Sylwy
User avatar
Nordlandia
Posts: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Chess Tools

Post by Nordlandia »

Fritz's evaluation profile display time usage in graph but it doesn't accumulate total game duration.

Complicated question: is it possible to anticipate time usage in X number of moves based on TC. For example by playing 60 moves in 3+2 blitz format, total game duration is beyond 10 minutes. But this is not true. Based on my testing, move number is usually at 50 or 55 and seldomly near 60 once 10 minutes has passed since game started.
MikeGL
Posts: 1010
Joined: Thu Sep 01, 2011 2:49 pm

Re: Chess Tools

Post by MikeGL »

Nordlandia wrote:Is there any existing tools that can calculate total game duration based on pgn clock information?
I think this is an easy one even for a newbie/hobbyist programmer like me, as long as the format of clock contains a suffix 's' just like the below sample
PGN, all the program needs to do is collect all those numbers then add them up.

Code: Select all

[Event "CCRL 40/40"]
[Site "CCRL"]
[Date "2005.12.25"]
[Round "1.1.28"]
[White "Fritz 9"]
[Black "Gandalf 6"]
[Result "1/2-1/2"]
[ECO "D95"]
[Opening "Gruenfeld"]
[Variation "Botvinnik variation"]
[PlyCount "140"]
[WhiteElo "2742"]
[BlackElo "2632"]

1. d4 {0s} Nf6 {0s} 2. c4 {0s} g6 {0s} 3. Nc3 {0s} d5 {0s} 4. Nf3 {0s} Bg7 {0s}
5. e3 {0s} O-O {0s} 6. Qb3 {0s} e6 {0s} 7. Bd2 {0s} b6 {Both last book move 0s}
8. Be2 {+0.20/12 116s} c5 {+0.25/12 245s} 9. O-O {(dxc5) +0.12/12 120s} Nc6
{+0.12/12 83s} 10. cxd5 {(dxc5) +0.30/12 107s} exd5 {+0.06/12 116s} 11. Rac1
{(Bb5) +0.15/12 177s} Bg4 {-0.03/12 76s} 12. Rfd1 {(Qa4) +0.18/12 137s} cxd4
{-0.09/11 194s} 13. Nxd4 {+0.01/14 139s} Nxd4 {+0.00/14 160s} 14. exd4
{+0.00/15 93s} Bxe2 {+0.00/14 103s} 15. Nxe2 {+0.01/15 109s} Re8 {+0.00/14
103s} 16. Nc3 {(Nf4) +0.01/14 81s} Qd7 {-0.06/13 103s} 17. Nb5 {(Re1) +0.04/15
392s} Rac8 {+0.00/13 102s} 18. Bf4 {(Rxc8) +0.04/14 133s} Rxc1 {+0.00/12 103s}
19. Rxc1 {+0.05/13 72s} Rc8 {+0.00/13 98s} 20. Rxc8+ {+0.08/14 73s} Qxc8
{+0.00/13 26s} 21. h3 {(Nxa7) +0.00/14 136s} Nh5 {(Qf5) +0.00/14 107s} 22. Be3
{+0.19/15 115s} Qd7 {+0.09/16 107s} 23. Qa4 {(Nc3) +0.63/16 181s} f5 {+0.00/14
107s} 24. Qa6 {(Bd2) +0.59/15 85s} f4 {+0.06/15 96s} 25. Bd2 {+0.09/15 131s}
Qe8 {(h6) +0.28/14 577s} 26. a4 {(Nxa7) +0.65/14 197s} h6 {+0.32/13 59s} 27.
Nxa7 {+0.61/13 82s} Bxd4 {+0.09/12 79s} 28. Qc8 {+0.32/13 69s} Kf8 {+0.16/13
65s} 29. Kf1 {+0.30/13 94s} Bxb2 {+0.03/12 91s} 30. Bb4+ {+0.32/14 129s} Kf7
{+0.09/12 92s} 31. Qb7+ {+0.37/13 64s} Kg8 {+0.16/13 230s} 32. Qxd5+ {+0.35/13
65s} Kh7 {(Kh8) +0.00/13 93s} 33. Nb5 {+0.14/14 137s} Bg7 {+0.00/14 80s} 34.
Bd2 {(Bd6) +0.14/14 77s} Nf6 {+0.00/14 61s} 35. Qd3 {(Qf3) +0.06/14 87s} Nh5
{(Qe5) +0.00/15 58s} 36. Kg1 {(Qd5) +0.19/14 65s} Qe7 {(Qg8) +0.00/13 37s} 37.
Bc3 {(Qd5) +0.20/13 43s} Qe6 {(Bxc3) +0.06/13 70s} 38. Bxg7 {+0.36/13 44s} Nxg7
{+0.00/14 39s} 39. Kh2 {(Nc7) +0.48/13 39s} Qe1 {(Qf6) +0.06/14 50s} 40. Qd4
{+0.51/14 46s} f3 {+0.00/14 40s} 41. gxf3 {+0.39/14 69s} Nf5 {+0.00/15 90s} 42.
Qd7+ {+0.41/14 86s} Kg8 {+0.00/14 99s} 43. Qc8+ {(Qd8+) +0.30/14 118s} Kf7
{+0.00/14 437s} 44. Qc2 {(Qc7+) +0.41/13 84s} Qe5+ {+0.00/13 80s} 45. Kg2
{+0.44/13 72s} Nh4+ {+0.00/12 94s} 46. Kf1 {+0.32/14 152s} Qa1+ {(Kg7) +0.00/12
180s} 47. Ke2 {+0.23/13 88s} Qe5+ {(Ng2) +0.00/12 109s} 48. Qe4 {+0.45/13 83s}
Qb2+ {+0.00/12 120s} 49. Kd3 {+0.39/13 100s} Qb1+ {(Qxf2) +0.00/12 160s} 50.
Kc3 {(Kc4) +0.37/14 87s} Qa1+ {(Qc1+) +0.00/12 112s} 51. Kb3 {(Kd2) +0.21/14
114s} Qd1+ {+0.00/12 252s} 52. Kb4 {(Kb2) +0.32/14 214s} Qd2+ {(Nxf3) +0.00/11
81s} 53. Nc3 {(Kb3) +0.38/14 217s} Qb2+ {(Qxf2) +0.19/12 608s} 54. Kc4
{+0.46/11 6s} Nf5 {(Qxf2) +0.19/13 138s} 55. Qd5+ {(Qb7+) +0.46/13 116s} Ke7
{+0.22/12 59s} 56. Qb7+ {(Qc6) +0.45/13 127s} Kf8 {+0.22/12 42s} 57. Qc8+
{(Qc6) +0.32/13 111s} Kf7 {+0.19/13 36s} 58. Qd7+ {+0.31/13 67s} Ne7 {+0.12/12
51s} 59. Ne4 {+0.26/14 135s} g5 {+0.03/12 87s} 60. Nd6+ {(Qd4) +0.31/13 95s}
Kf6 {+0.00/12 51s} 61. Ne8+ {(Kd3) +0.21/13 55s} Kf7 {+0.00/13 42s} 62. Nc7
{(Nd6+) +0.00/13 61s} Qe5 {+0.00/12 48s} 63. Qe8+ {(Kb4) +0.01/13 62s} Kg7
{+0.00/13 29s} 64. Qd8 {(Qd7) +0.00/13 87s} Kg6 {+0.00/11 39s} 65. Kb3 {(Qe8+)
+0.01/13 82s} Qe2 {+0.00/10 39s} 66. Qe8+ {(Qd6+) +0.00/13 82s} Kg7 {+0.00/13
29s} 67. Qd7 {+0.00/14 102s} Qxf3+ {+0.00/12 55s} 68. Kb4 {+0.00/14 118s} Qe2
{+0.00/12 48s} 69. Qd4+ {+0.00/13 107s} Kh7 {+0.00/12 38s} 70. Qxb6 {+0.00/13
100s} Qb2+ {Draw accepted +0.00/12 39s} 1/2-1/2
But if the clock is provided on a different format than the above sample,
then code should be modified/tweaked accordingly.
Provide the clock format and I can try to build it on my spare time.
I told my wife that a husband is like a fine wine; he gets better with age. The next day, she locked me in the cellar.
User avatar
Nordlandia
Posts: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Chess Tools

Post by Nordlandia »

MikeGL wrote:I think this is an easy one even for a newbie/hobbyist programmer like me, as long as the format of clock contains a suffix 's' just like the below sample
PGN, all the program needs to do is collect all those numbers then add them up.
It's vital to include base time as well. For example "[TimeControl "300+5"]" in the pgn header. And add that time in the calculation too.