MattEstHaut / Victoire

A UCI chess engine written in Zig.
1 stars 0 forks source link

Time management? #1

Closed rwbc closed 6 months ago

rwbc commented 6 months ago

Thanks for the release of Victoire.

It seems it has no time management yet? (or it does not understand fischer tc with increments) I was too lazy to check the sources.

Here is an example game in CuteChess.

[Event "My Tournament"]
[Site "RWBC-ESPRESSO Win11Pro Ryzen7 5700G 3.8Ghz 32GB"]
[Date "2024.04.09"]
[Round "1.1.1"]
[White "Victoire_100-64"]
[Black "TSCP_181c-64"]
[Result "0-1"]
[ECO "A00"]
[GameDuration "00:01:39"]
[GameEndTime "2024-04-09T20:01:03.853 Mitteleuropäische Sommerzeit"]
[GameStartTime "2024-04-09T19:59:24.341 Mitteleuropäische Sommerzeit"]
[Opening "Benko's Opening"]
[PlyCount "70"]
[TimeControl "120+1"]

1. g3 {book} e5 {book}
2. Bg2 {book} Nf6 {book}
3. Nf3 {book} e4 {book}
4. Nd4 {-0.65/6 0.22} d5 {+0.76/7 4.03}
5. d3 {-0.60/5 0.48} Bc5 {+0.63/7 3.93}
6. Be3 {-0.40/9 0.65} O-O {+0.52/7 3.83}
7. Nc3 {-0.24/7 0.63} Bb4 {+0.70/7 3.74}
8. dxe4 {-0.30/10 0.45} Bxc3+ {+0.73/7 3.65}
9. bxc3 {-0.45/10 0.26} dxe4 {+0.92/7 3.56}
10. Bg5 {-0.40/10 0.39} Re8 {+0.89/7 3.48}
11. O-O {-0.45/9 0.44} Qe7 {+0.84/7 3.39}
12. e3 {-0.30/10 0.58} Nbd7 {+0.91/7 3.31}
13. f3 {-0.35/6 0.30} exf3 {+0.96/7 3.23}
14. Bxf3 {-0.30/10 0.50} Qc5 {+0.92/6 3.16}
15. Bxf6 {-0.35/10 0.39} Nxf6 {+0.97/7 3.09}
16. Qd2 {-0.25/10 1.29} Qe7 {+1.11/6 3.02}
17. Rfe1 {-0.35/10 0.26} c5 {+1.26/6 2.95}
18. Nb3 {-0.30/7 0.14} Bf5 {+1.31/6 2.89}
19. Qg2 {-0.35/10 0.27} Ne4 {+1.32/6 2.82}
20. c4 {-0.30/10 0.11} Rad8 {+1.31/6 2.76}
21. g4 {-0.30/10 0.054} Bg6 {+1.38/7 2.70}
22. Qe2 {-0.30/10 0.18} Qg5 {+1.47/6 2.65}
23. h3 {-0.30/10 0.048} Nc3 {+1.53/6 2.59}
24. Qf2 {-0.35/8 0.089} b6 {+1.52/6 2.54}
25. Bc6 {-0.20/11 0.11} Re6 {+1.56/6 2.49}
26. Bf3 {-0.35/8 0.14} Rde8 {+1.61/5 2.44}
27. h4 {-0.25/6 0.80} Qf6 {+1.68/6 2.39}
28. h5 {-1.00/10 0.47} Be4 {+1.85/7 2.34}
29. Bxe4 {-1.01/10 0.064} Rxe4 {+2.42/7 2.30}
30. Qg2 {-1.15/10 0.79} Qg5 {+4.07/6 2.26}
31. Kf1 {-2.30/8 0.17} Rxg4 {+4.07/6 2.21}
32. Qh2 {-2.30/5 0.82} Qf5+ {+8.56/6 2.17}
33. Qf2 {-3.35/7 0.12} Qe4 {+13.31/6 2.13}
34. Qd2 {-2.38/5 0.11} Qh1+ {+M3/3 0.003}
35. Kf2 {-M2/2 0.003} Qg2# {+M1/2 0}
{Black mates}
0-1

Guenther (RWBC)

MattEstHaut commented 6 months ago

Hi,

Thanks for bringing my attention to time management. It's a basic feature but the go command only managed depth and movetime options until now.

Victoire now interprets the wtime, btime, winc, binc and movestogo options (0bafe7d90bb7b35bb88920a78b84218efe9c84df). I've added a release that includes these features.