Phil-Brooks / Flounder

An attempt at a chess engine in F#
MIT License
0 stars 0 forks source link

v0.5.0.0 lost on time #1

Open tissatussa opened 1 month ago

tissatussa commented 1 month ago

while testing your v0.5.0.0 in CuteChess the engine lost on time .. it was a game with fixed start position (Flounder had to open the game with 1.Nf3) against another engine (on another PC), which moves i entered by hand .. here's the game :

[Event "engine vs engine"]
[Site "Holland"]
[Date "2024.05.20"]
[Round "?"]
[White "Flounder v0.5.0.0 NN"]
[Black "DGT Centaur board - Expert mode"]
[Result "0-1"]
[FEN "rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1"]
[PlyCount "43"]
[SetUp "1"]
[Termination "time forfeit"]
[TimeControl "1200"]

1... g6 2. e4 {+0.61/12 60s} Bg7 {52s} 3. d4 {+0.64/12 50s} d6 {58s}
4. Nc3 {+0.57/10 55s} Nf6 {1888s} 5. Be2 {+0.59/11 52s} O-O {488s}
6. O-O {+0.67/11 49s} Nc6 {273s} 7. d5 {+0.58/11 47s} Nb8 {27s}
8. Be3 {+0.43/10 44s} c6 {39s} 9. Nd4 {+0.55/10 35s} cxd5 {27s}
10. exd5 {+0.79/11 34s} Bd7 {31s} 11. h3 {+0.76/10 39s} e6 {23s}
12. dxe6 {+1.27/13 37s} fxe6 {115s} 13. Ndb5 {+1.13/11 35s} d5 {29s}
14. Nxa7 {+1.16/11 33s} Nc6 {36s} 15. Nxc6 {+1.05/11 32s} bxc6 {22s}
16. a4 {+1.07/10 30s} e5 {39s} 17. Bc5 {+0.88/11 24s} Rf7 {21s}
18. b4 {+0.97/9 27s} Bf8 {33s} 19. Bxf8 {+0.90/12 26s} Qxf8 {250s}
20. Qb1 {+0.69/10 25s} d4 {46s} 21. Nd1 {+0.75/10 21s} Be6 {28s}
22. Re1 {+1.29/12 446s} Qd6 {23s, White loses on time} 0-1

i must say Black had negative time for many moves, because i paused frequently, but normally CuteChess allows this when a human is playing ('human' = Certaur manually), so i guess this was NOT the cause ..

here's the log tail .. sorry i couldn't save the full log, i switched the CuteChess window pane several times which makes CuteChess refreshes its log ..

[ i'm on Xubuntu 22.04 ]

>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 698338 btime -1820890
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 3 score cp 120 nodes 44 nps -2147483648 pv e2c4 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 5 score cp 105 nodes 418 nps 14928 pv d1d2 d6d5 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 5 score cp 100 nodes 1319 nps 16085 pv d1d2 d6d5 a1d1 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 7 score cp 94 nodes 2781 nps 14335 pv d1d2 d6d5 a1d1 b8c6 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 7 score cp 128 nodes 5324 nps 15211 pv d4b5 d7b5 c3b5 d6d5 c2c4 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 9 score cp 123 nodes 11492 nps 18655 pv d4b5 d6d5 b5a7 f6h5 d1d2 d8h4 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 10 score cp 129 nodes 15262 nps 20596 pv d4b5 d6d5 b5a7 b8c6 a7c6 d7c6 c3b5 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 10 score cp 125 nodes 20215 nps 22816 pv d4b5 d6d5 b5a7 b8c6 a7c6 d7c6 c3b5 e6e5 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 12 score cp 115 nodes 40501 nps 25928 pv d4b5 d6d5 b5a7 b8c6 a7c6 d7c6 c3b5 e6e5 c2c3 
<Flounder v0.5.0.0 NN(28): info depth 10 seldepth 14 score cp 126 nodes 63280 nps 26711 pv d4b5 d6d5 b5a7 b8c6 a7c6 b7c6 a2a4 d8b8 a4a5 b8b2 
<Flounder v0.5.0.0 NN(28): info depth 11 seldepth 17 score cp 113 nodes 524839 nps 27985 pv d4b5 d6d5 b5a7 b8c6 a7c6 d7c6 c3b5 e6e5 a2a4 d5d4 e2c4 
<Flounder v0.5.0.0 NN(28): bestmove d4b5
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 663418 btime -1849713
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 5 score cp 66 nodes 59 nps 19666 pv e3a7 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 8 score cp 101 nodes 251 nps 31375 pv b5a7 d8e7 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 8 score cp 128 nodes 468 nps 33428 pv b5a7 b8c6 a7c6 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 8 score cp 123 nodes 1257 nps 36970 pv b5a7 f6h5 d1d2 d8h4 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 8 score cp 129 nodes 2391 nps 45113 pv b5a7 b8c6 a7c6 d7c6 c3b5 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 8 score cp 125 nodes 2738 nps 44161 pv b5a7 b8c6 a7c6 d7c6 c3b5 e6e5 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 11 score cp 114 nodes 3272 nps 45444 pv b5a7 b8c6 a7c6 d7c6 c3b5 e6e5 a2a4 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 14 score cp 133 nodes 48471 nps 31413 pv b5a7 b8c6 a7c6 d7c6 c3b5 e6e5 c2c3 f6h5 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 14 score cp 107 nodes 72513 nps 31929 pv b5a7 b8c6 a7c6 d7c6 c3b5 e6e5 c2c3 f6h5 c3c4 
<Flounder v0.5.0.0 NN(28): info depth 10 seldepth 16 score cp 95 nodes 248474 nps 28825 pv b5a7 b8c6 a7b5 c6e7 d1d2 e7f5 a1d1 f5e3 d2e3 d8a5 
<Flounder v0.5.0.0 NN(28): info depth 11 seldepth 19 score cp 116 nodes 587389 nps 28797 pv b5a7 b8c6 a7b5 c6e7 a2a4 e7f5 e3f4 d7c6 b5c7 g6g5 f4e5 
<Flounder v0.5.0.0 NN(28): bestmove b5a7
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5 b5a7 b8c6
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 630236 btime -1885880
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 2 score cp 141 nodes 45 nps -2147483648 pv a7b5 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 3 score cp 162 nodes 153 nps 76500 pv a7b5 g8h8 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 7 score cp 145 nodes 378 nps 18900 pv a7b5 g8h8 a2a4 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 14 score cp 139 nodes 1085 nps 17786 pv a7b5 c6e7 a2a4 e7f5 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 14 score cp 112 nodes 1454 nps 20194 pv a7b5 c6e7 a2a4 e7f5 e3f4 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 14 score cp 120 nodes 3054 nps 19329 pv a7c6 d7c6 c3b5 e6e5 c2c3 g8h8 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 14 score cp 124 nodes 5042 nps 18468 pv a7c6 d7c6 c3b5 e6e5 c2c3 f6h5 a2a4 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 14 score cp 109 nodes 6697 nps 18500 pv a7c6 d7c6 c3b5 e6e5 c2c3 f6h5 e2h5 g6h5 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 14 score cp 104 nodes 9950 nps 21351 pv a7c6 d7c6 c3b5 e6e5 c2c3 f6h5 e2h5 g6h5 a2a4 
<Flounder v0.5.0.0 NN(28): info depth 10 seldepth 14 score cp 116 nodes 24080 nps 25754 pv a7c6 d7c6 c3b5 e6e5 c2c3 f6h5 e2h5 g6h5 a2a4 d8h4 
<Flounder v0.5.0.0 NN(28): info depth 11 seldepth 17 score cp 105 nodes 338377 nps 26851 pv a7c6 d7c6 c3b5 e6e5 c2c3 f6h5 b5a7 h5f4 a7c6 b7c6 e3f4 
<Flounder v0.5.0.0 NN(28): bestmove a7c6
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5 b5a7 b8c6 a7c6 b7c6
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 598723 btime -1908021
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 2 score cp 141 nodes 43 nps -2147483648 pv a2a4 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 3 score cp 143 nodes 137 nps 34250 pv a2a4 f6e4 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 5 score cp 124 nodes 733 nps 31869 pv a2a4 e6e5 b2b4 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 7 score cp 111 nodes 1637 nps 35586 pv a2a4 e6e5 e3c5 f8f7 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 8 score cp 119 nodes 4856 nps 32590 pv a2a4 f8f7 f1e1 e6e5 d1d2 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 8 score cp 115 nodes 15801 nps 33335 pv a2a4 e6e5 e3c5 f8f7 b2b4 f6h5 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 9 score cp 115 nodes 38671 nps 32065 pv a2a4 e6e5 e3c5 f8f7 b2b4 d7h3 g2h3 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 9 score cp 95 nodes 154809 nps 25357 pv a2a4 e6e5 e3c5 f8f7 b2b4 d7h3 g2h3 f6e4 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 14 score cp 103 nodes 254001 nps 26697 pv a2a4 e6e5 e3c5 f8f7 b2b4 e5e4 a4a5 d7h3 g2h3 
<Flounder v0.5.0.0 NN(28): info depth 10 seldepth 14 score cp 107 nodes 479555 nps 26031 pv a2a4 e6e5 e3c5 f8f7 b2b4 d7f5 a4a5 f6d7 c3a4 d7c5 
<Flounder v0.5.0.0 NN(28): bestmove a2a4
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5 b5a7 b8c6 a7c6 b7c6 a2a4 e6e5
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 568786 btime -1946722
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 2 score cp 107 nodes 45 nps -2147483648 pv e3c5 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 3 score cp 111 nodes 124 nps 41333 pv e3c5 f8e8 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 4 score cp 104 nodes 267 nps 38142 pv e3c5 f8e8 b2b4 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 7 score cp 102 nodes 483 nps 23000 pv e3c5 f8e8 b2b4 f6e4 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 12 score cp 102 nodes 1075 nps 16538 pv e3c5 f8e8 f1e1 d7f5 b2b4 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 12 score cp 105 nodes 2008 nps 16459 pv e3c5 f8e8 b2b4 d5d4 c3b1 f6e4 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 12 score cp 101 nodes 2455 nps 16476 pv e3c5 f8e8 b2b4 d5d4 c3b1 f6e4 b1d2 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 12 score cp 101 nodes 3245 nps 16225 pv e3c5 f8e8 b2b4 d5d4 c3b1 f6e4 b1d2 e4c5 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 12 score cp 101 nodes 12060 nps 21010 pv e3c5 f8e8 b2b4 d5d4 c3b1 f6e4 b1d2 e4c5 b4c5 
<Flounder v0.5.0.0 NN(28): info depth 10 seldepth 15 score cp 88 nodes 271503 nps 27583 pv e3c5 f8e8 b2b4 d5d4 e2c4 d7e6 c4e6 e8e6 c3e2 f6d7 e2g3 d7c5 
<Flounder v0.5.0.0 NN(28): info depth 11 seldepth 15 score cp 88 nodes 652889 nps 27290 pv e3c5 f8e8 b2b4 d5d4 e2c4 d7e6 c4e6 e8e6 c3e2 f6d7 e2g3 d7c5 b4c5 
<Flounder v0.5.0.0 NN(28): bestmove e3c5
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5 b5a7 b8c6 a7c6 b7c6 a2a4 e6e5 e3c5 f8f7
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 544854 btime -1967654
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 2 score cp 104 nodes 45 nps 45000 pv b2b4 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 4 score cp 115 nodes 145 nps 36250 pv b2b4 f6h5 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 7 score cp 115 nodes 515 nps 27105 pv b2b4 d7h3 g2h3 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 10 score cp 95 nodes 1113 nps 29289 pv b2b4 d7h3 g2h3 f6e4 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 10 score cp 107 nodes 3661 nps 31290 pv b2b4 d7f5 a4a5 f6d7 c3a4 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 10 score cp 107 nodes 8141 nps 30605 pv b2b4 d7f5 a4a5 f6d7 c3a4 d7c5 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 12 score cp 106 nodes 22124 nps 29420 pv b2b4 e5e4 a1b1 f6e8 c3e4 d5e4 e2c4 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 12 score cp 66 nodes 212064 nps 24872 pv b2b4 d7f5 d1d2 f6d7 c5e3 d8h4 b4b5 d5d4 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 12 score cp 97 nodes 277891 nps 25588 pv b2b4 d7f5 a4a5 f6d7 c3d5 d7c5 d5b6 c5e6 b6a8 
<Flounder v0.5.0.0 NN(28): bestmove b2b4
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5 b5a7 b8c6 a7c6 b7c6 a2a4 e6e5 e3c5 f8f7 b2b4 g7f8
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 517567 btime -2000278
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 2 score cp 143 nodes 45 nps -2147483648 pv c5f8 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 3 score cp 143 nodes 126 nps 126000 pv c5f8 d8f8 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 4 score cp 105 nodes 695 nps 46333 pv c5f8 d8f8 a1b1 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 6 score cp 124 nodes 1584 nps 51096 pv c5f8 d8f8 a1b1 e5e4 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 8 score cp 131 nodes 2848 nps 51781 pv c5f8 d8f8 a1b1 f8d6 a4a5 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 8 score cp 126 nodes 7774 nps 52174 pv c5f8 d8f8 b4b5 d5d4 b5c6 d7c6 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 11 score cp 97 nodes 15818 nps 46660 pv c5f8 d8f8 b4b5 d5d4 b5c6 d7c6 c3b5 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 12 score cp 102 nodes 25431 nps 47623 pv c5f8 d8f8 b4b5 d5d4 e2c4 d4c3 c4f7 f8f7 b5b6 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 14 score cp 97 nodes 42573 nps 47942 pv c5f8 d8f8 b4b5 d5d4 b5c6 d7c6 e2b5 f8c5 b5c6 
<Flounder v0.5.0.0 NN(28): info depth 10 seldepth 18 score cp 47 nodes 231447 nps 49592 pv c5f8 d8f8 b4b5 f8c5 b5c6 d7c6 c3b5 d5d4 c2c3 d4c3 
<Flounder v0.5.0.0 NN(28): info depth 11 seldepth 18 score cp 64 nodes 389295 nps 48293 pv c5f8 d8f8 b4b5 d5d4 b5c6 d7c6 e2b5 c6b7 c3e2 f8c5 e2g3 
<Flounder v0.5.0.0 NN(28): info depth 12 seldepth 18 score cp 90 nodes 925223 nps 46444 pv c5f8 d8f8 d1b1 a8b8 b4b5 d5d4 e2c4 d4c3 c4f7 g8f7 b5b6 f8c5 a4a5 
<Flounder v0.5.0.0 NN(28): bestmove c5f8
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5 b5a7 b8c6 a7c6 b7c6 a2a4 e6e5 e3c5 f8f7 b2b4 g7f8 c5f8 d8f8
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 491688 btime -2250080
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 4 score cp 105 nodes 45 nps -2147483648 pv a1b1 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 4 score cp 124 nodes 140 nps 10000 pv a1b1 e5e4 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 10 score cp 106 nodes 572 nps 14300 pv b4b5 f8c5 d1d3 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 10 score cp 102 nodes 1152 nps 13090 pv b4b5 f8c5 d1d3 e5e4 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 11 score cp 78 nodes 4358 nps 11378 pv d1b1 d7h3 g2h3 f8c8 g1h2 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 14 score cp 39 nodes 15793 nps 15333 pv d1b1 d7h3 g2h3 f8h6 g1h2 f6e4 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 15 score cp 51 nodes 28619 nps 17864 pv b4b5 f8c5 b5c6 d7c6 c3b5 d5d4 e2d3 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 15 score cp 81 nodes 58120 nps 20250 pv d1b1 e5e4 b1b3 d7h3 g2h3 f8h6 c3d1 f6h5 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 16 score cp 72 nodes 254432 nps 21046 pv d1b1 a8b8 a4a5 d7h3 g2h3 f8h6 b1c1 h6h3 c1e3 
<Flounder v0.5.0.0 NN(28): info depth 10 seldepth 17 score cp 69 nodes 400948 nps 21178 pv d1b1 a8b8 a4a5 b8b4 b1c1 f8c5 c3d1 g8g7 a5a6 c5a7 
<Flounder v0.5.0.0 NN(28): bestmove d1b1
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5 b5a7 b8c6 a7c6 b7c6 a2a4 e6e5 e3c5 f8f7 b2b4 g7f8 c5f8 d8f8 d1b1 d5d4
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 467023 btime -2295800
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 4 score cp 109 nodes 42 nps 1999 pv c3d1 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 4 score cp 91 nodes 172 nps 3822 pv c3d1 e5e4 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 7 score cp 108 nodes 492 nps 5720 pv c3d1 d7e6 a4a5 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 7 score cp 91 nodes 1208 nps 8162 pv c3d1 f6d5 e2c4 d7e6 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 10 score cp 93 nodes 4614 nps 11535 pv c3d1 d7e6 a4a5 f6d5 e2c4 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 10 score cp 89 nodes 8437 nps 11589 pv c3d1 d7e6 a4a5 f6d5 e2c4 e5e4 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 12 score cp 100 nodes 23845 nps 12792 pv c3d1 f6d5 b1b3 e5e4 e2c4 d7e6 c2c3 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 14 score cp 79 nodes 57337 nps 11458 pv c3d1 f6d5 a4a5 d7h3 g2h3 e5e4 b1b3 d5f4 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 15 score cp 71 nodes 120336 nps 13085 pv c3d1 f6d5 f1e1 d5f4 e2f1 f8e7 b1b2 d7h3 g2h3 
<Flounder v0.5.0.0 NN(28): info depth 10 seldepth 15 score cp 75 nodes 289458 nps 13620 pv c3d1 f6d5 b1b3 f8b4 b3b4 d5b4 e2c4 b4d5 f1e1 d7f5 
<Flounder v0.5.0.0 NN(28): bestmove c3d1
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5 b5a7 b8c6 a7c6 b7c6 a2a4 e6e5 e3c5 f8f7 b2b4 g7f8 c5f8 d8f8 d1b1 d5d4 c3d1 d7e6
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 445731 btime -2323653
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 4 score cp 100 nodes 37 nps 2055 pv f1e1 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 4 score cp 101 nodes 189 nps 8217 pv b1b2 f6d5 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 11 score cp 95 nodes 1017 nps 8843 pv f1e1 e5e4 c2c3 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 11 score cp 109 nodes 2910 nps 15235 pv f1e1 f6e4 b1b2 e4d2 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 11 score cp 92 nodes 5863 nps 18612 pv f1e1 f6e4 b1b2 e4d2 a4a5 
<Flounder v0.5.0.0 NN(28): info depth 6 seldepth 12 score cp 102 nodes 20280 nps 16095 pv f1e1 a8b8 b4b5 e5e4 e2f1 c6b5 
<Flounder v0.5.0.0 NN(28): info depth 7 seldepth 15 score cp 120 nodes 65906 nps 14139 pv f1e1 f6e4 e2d3 e4f2 d1f2 f7f2 e1e5 
<Flounder v0.5.0.0 NN(28): info depth 8 seldepth 15 score cp 94 nodes 154395 nps 14767 pv f1e1 f6e4 e2d3 e4f2 d1f2 f7f2 e1e5 e6d5 
<Flounder v0.5.0.0 NN(28): info depth 9 seldepth 16 score cp 112 nodes 424859 nps 14126 pv f1e1 e6d5 e2f1 f6e4 e1e2 a8b8 b4b5 c6b5 a4b5 
<Flounder v0.5.0.0 NN(28): info depth 10 seldepth 18 score cp 132 nodes 1369127 nps 12856 pv f1e1 e5e4 a4a5 a8d8 a5a6 e6h3 g2h3 f6d5 b1b3 f8h6 
<Flounder v0.5.0.0 NN(28): info depth 11 seldepth 18 score cp 126 nodes 2192362 nps 13444 pv f1e1 f6d5 e2c4 f8d6 b1b3 f7b7 c2c3 d4c3 d1c3 b7b4 b3a2 
<Flounder v0.5.0.0 NN(28): info depth 12 seldepth 20 score cp 129 nodes 4246403 nps 14096 pv f1e1 f8h6 e2f1 h6g5 b1c1 g5c1 a1c1 a8a4 e1e5 e6d5 b4b5 f6d7 
>Flounder v0.5.0.0 NN(28): stop
<Flounder v0.5.0.0 NN(28): bestmove f1e1
>Flounder v0.5.0.0 NN(28): position fen rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 moves g7g6 e2e4 f8g7 d2d4 d7d6 b1c3 g8f6 f1e2 e8g8 e1g1 b8c6 d4d5 c6b8 c1e3 c7c6 f3d4 c6d5 e4d5 c8d7 h2h3 e7e6 d5e6 f7e6 d4b5 d6d5 b5a7 b8c6 a7c6 b7c6 a2a4 e6e5 e3c5 f8f7 b2b4 g7f8 c5f8 d8f8 d1b1 d5d4 c3d1 d7e6 f1e1 f8d6
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
>Flounder v0.5.0.0 NN(28): go wtime 40 btime -2346337
<Flounder v0.5.0.0 NN(28): info depth 1 seldepth 6 score cp 157 nodes 60 nps 20000 pv c2c3 
<Flounder v0.5.0.0 NN(28): info depth 2 seldepth 6 score cp 158 nodes 191 nps 6821 pv c2c3 a8f8 
<Flounder v0.5.0.0 NN(28): info depth 3 seldepth 9 score cp 169 nodes 770 nps 10000 pv c2c3 a8f8 a4a5 
<Flounder v0.5.0.0 NN(28): info depth 4 seldepth 11 score cp 120 nodes 1896 nps 10360 pv c2c3 f6d5 c3d4 e5d4 
<Flounder v0.5.0.0 NN(28): info depth 5 seldepth 11 score cp 134 nodes 3010 nps 12088 pv c2c3 f6d5 c3d4 e5d4 e2c4 
>Flounder v0.5.0.0 NN(28): stop
<Flounder v0.5.0.0 NN(28): bestmove c2c3
>Flounder v0.5.0.0 NN(28): isready
<Flounder v0.5.0.0 NN(28): readyok
tissatussa commented 1 month ago

btw. i switched the title .. at first i thought the main issue was that castling rights were not updated (after castling on move 5 and 6) but i was mistaken : the shown FEN was my starting position - sorry.

Phil-Brooks commented 1 month ago

Time handling code not really set up for these parameters. Either expected (1) "movetime" parameter or (2) full set of time parameters with "movestogo" as well as "wtime" and "btime". With these parameters it fell into option (2) and a further issue was then created given the negative time passed in for "btime".

Code changed to handle this set of parametres: if you do not provide full parameters it just uses either the "wtime" or "btime" as if they were "movetime", depending on whose turn to move.

This change is in v.0.5.0.2.

Will close later if this does indeed fix the issue.

Phil-Brooks commented 1 month ago

Actually previous comment was not accurate. Needed instead to use option (2) but allow for issue with a negative other time.

tissatussa commented 1 month ago

OK compiling v0.5.0.2 was successful ! no errors or even warnings - note: on my Linux i compile with dotnet 8, it works with a root .sln file but it needs a trick i found, which still works with NET 8 :

Net5.0 RC2: When building a solution with a target runtime ID an error is given #14281 https://github.com/dotnet/sdk/issues/14281

Here is another workaround which may be better than creating publish profiles for each project. Create a Directory.Build.props file in the root of your repo with the following contents:

<Project>
  <PropertyGroup>
    <RuntimeIdentifier>$(MyRuntimeIdentifier)</RuntimeIdentifier>
  </PropertyGroup>
</Project>

Then when you build or publish, specify the RuntimeIdentifier with the MyRuntimeIdentifier property instead of the --runtime parameter. For example: [..]

now this works for me :

(base) roelof@roelof-HP-Elite-x2-1012-G2:~/Compiled/Flounder-v.0.5.0.2$ dotnet build ./Flounder.sln -p:MyRuntimeIdentifier=linux-x64 -o ./Flounder-v0.5.0.2-compiled-HP-net8

note: i should give an -o [pathname] ?! without it, compilation gives some error .. but the given name becomes a folder, where the resulting binary is located .. i copied all these files in their folder, otherwise the binary doesn't run .. do we need all these files on Linux ? I'm not into .NET and dotnet :-)

tissatussa commented 1 month ago

regarding the time management : v0.5.0.2 doesn't lose on time but it has a poor time management .. in a 7m+3s game it takes almost all time upto move 4, then using only the 3 sconds bonus for every move .. it was a draw, but it might have won ..

[Event "engine vs engine"]
[Site "Holland"]
[Date "2024.05.20"]
[Round "?"]
[White "Flounder v0.5.0.2 NN"]
[Black "4ku v4.0"]
[Result "1/2-1/2"]
[FEN "rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1"]
[GameDuration "00:25:15"]
[PlyCount "251"]
[SetUp "1"]
[TimeControl "420+3"]

1... d5 {-0.38/23 15s} 2. d4 {+0.25/16 390s} Nf6 {-0.46/22 17s}
3. e3 {+0.22/11 36s} c5 {-0.23/24 16s} 4. Be2 {+0.33/9 3.0s} Nc6 {+0.03/25 20s}
5. O-O {+0.25/9 3.0s} cxd4 {-0.07/25 27s} 6. exd4 {+0.31/9 3.0s}
Bf5 {0.00/26 11s} 7. c3 {+0.32/9 3.0s} e6 {+0.03/25 13s} 8. Nh4 {+0.54/9 3.0s}
Be4 {-0.10/25 11s} 9. Nd2 {+0.63/9 3.0s} Be7 {-0.06/27 12s}
10. Nxe4 {+0.56/9 3.0s} dxe4 {-0.06/27 13s} 11. g3 {+0.59/8 3.0s}
O-O {0.00/26 10s} 12. Ng2 {+0.37/8 2.6s} e5 {-0.21/26 33s}
13. dxe5 {+0.62/10 3.4s} Nxe5 {-0.24/26 41s} 14. Bf4 {+0.60/8 3.0s}
Ng6 {-0.21/25 8.3s} 15. Qxd8 {+0.77/9 2.5s} Rfxd8 {-0.13/28 8.6s}
16. Be3 {+0.83/9 3.5s} Nd5 {-0.11/28 7.6s} 17. Bd4 {+1.06/9 2.6s}
Nb4 {-0.23/28 19s} 18. Rad1 {+0.84/9 3.4s} Nc2 {-0.55/26 13s}
19. Be3 {+0.81/11 2.4s} Nxe3 {-0.40/25 6.1s} 20. Nxe3 {+0.75/10 3.6s}
Ne5 {-0.64/25 18s} 21. Nc4 {+0.68/9 2.4s} Nc6 {-0.45/24 6.4s}
22. Kh1 {+0.78/7 3.6s} Rxd1 {-0.42/25 5.3s} 23. Rxd1 {+0.45/10 2.6s}
Rd8 {-0.22/25 6.4s} 24. g4 {+0.49/9 3.4s} g6 {0.00/26 5.5s}
25. Rxd8+ {+0.28/10 3.0s} Nxd8 {+0.02/28 6.0s} 26. Nd2 {+0.16/9 3.0s}
f5 {+0.27/26 5.6s} 27. gxf5 {-0.20/10 2.4s} gxf5 {+0.30/28 8.8s}
28. f3 {-0.21/9 3.6s} e3 {+0.25/28 5.5s} 29. Bc4+ {-0.44/10 3.0s}
Kg7 {+0.64/29 9.5s} 30. Nb3 {-0.46/10 3.0s} Nc6 {+0.75/29 5.1s}
31. Kg2 {-0.72/10 3.0s} Ne5 {+0.82/28 4.5s} 32. Be2 {-0.63/11 2.9s}
Kf6 {+0.75/31 4.6s} 33. Na5 {-0.44/11 2.6s} b6 {+0.57/34 4.5s}
34. Nc4 {-0.65/12 3.5s} Nxc4 {+0.58/35 4.9s} 35. Bxc4 {-0.64/12 3.0s}
Kg5 {+0.56/32 4.9s} 36. Be2 {-0.60/11 3.0s} h5 {+1.55/38 6.6s}
37. Kg3 {-0.66/10 3.0s} Bd6+ {+1.56/40 3.9s} 38. Kg2 {-0.79/12 3.0s}
Kf4 {+1.53/39 4.6s} 39. Ba6 {-0.77/12 2.5s} h4 {+1.53/41 12s}
40. h3 {-0.76/15 3.3s} Bc5 {+0.57/30 3.7s} 41. Be2 {-0.76/16 3.3s}
Be7 {+0.55/33 3.8s} 42. Bd3 {-0.73/14 3.0s} Bg5 {+0.54/36 3.9s}
43. Be2 {-0.74/15 3.0s} Ke5 {+0.54/37 7.2s} 44. Kf1 {-0.17/11 3.0s}
f4 {+0.53/41 5.0s} 45. Ke1 {+0.03/12 3.0s} Kd5 {+0.53/44 3.5s}
46. Kd1 {0.00/12 3.0s} Kc5 {+0.50/44 3.3s} 47. a4 {+0.08/12 2.8s}
Bd8 {+0.48/51 6.0s} 48. Ba6 {+0.13/13 2.9s} Bc7 {+0.39/45 3.3s}
49. Kc2 {+0.11/13 2.7s} Kd5 {+0.39/46 3.6s} 50. Kd3 {+0.10/14 3.3s}
Ke5 {+0.39/48 3.6s} 51. Bc4 {+0.10/13 3.0s} Bd6 {+0.38/47 3.1s}
52. Kc2 {+0.08/14 2.8s} Bc5 {+0.11/44 3.3s} 53. Ba6 {+0.09/14 3.4s}
Bf8 {0.00/47 4.3s} 54. Bd3 {+0.09/12 3.1s} a5 {0.00/51 3.3s}
55. Be2 {+0.04/14 2.7s} Bd6 {0.00/50 3.1s} 56. Bb5 {+0.08/13 3.3s}
Kf5 {0.00/59 8.8s} 57. Kd3 {+0.01/12 3.0s} Bc5 {0.00/56 3.1s}
58. Ba6 {+0.01/14 2.5s} Ke5 {0.00/57 3.1s} 59. Kc2 {+0.01/17 2.9s}
Kd5 {0.00/58 3.2s} 60. b3 {0.00/12 3.3s} Bf8 {+0.97/40 2.8s}
61. Be2 {0.00/15 2.7s} Ke6 {+0.97/44 3.5s} 62. Ba6 {0.00/19 3.5s}
Bd6 {+0.98/45 2.8s} 63. Bc4+ {0.00/18 2.8s} Ke5 {+0.91/46 3.2s}
64. Be2 {0.00/26 3.2s} Bf8 {+0.92/45 2.8s} 65. Bc4 {0.00/29 3.0s}
Kf5 {+0.92/47 3.8s} 66. Ba6 {0.00/22 2.7s} Bg7 {+0.91/43 3.0s}
67. b4 {0.00/15 2.7s} Bf8 {+0.88/35 2.9s} 68. Kb3 {0.00/16 3.6s}
Be7 {+0.50/34 2.9s} 69. Be2 {0.00/15 2.6s} Ke6 {+0.21/36 2.8s}
70. Bc4+ {0.00/19 3.4s} Ke5 {0.00/37 2.8s} 71. Ba6 {0.00/21 2.8s}
axb4 {0.00/40 3.2s} 72. cxb4 {+0.02/15 3.2s} Bd6 {0.00/44 2.8s}
73. Kc3 {+0.09/12 3.0s} Be7 {0.00/56 3.1s} 74. a5 {+0.21/12 2.7s}
bxa5 {+1.81/49 2.8s} 75. bxa5 {+0.10/16 3.2s} Bd8 {+1.77/54 3.6s}
76. Kd3 {+0.11/14 2.5s} Bxa5 {+1.80/65 2.9s} 77. Ke2 {+0.05/14 3.6s}
Kd4 {+1.75/65 2.8s} 78. Bc8 {+0.05/14 2.7s} Bb4 {+1.70/65 2.9s}
79. Be6 {+0.03/17 2.6s} Bd6 {+1.67/64 2.9s} 80. Kd1 {+0.03/20 3.0s}
Kd3 {+1.70/64 3.2s} 81. Bf5+ {+0.04/17 2.9s} Kc4 {+1.66/66 3.0s}
82. Bg6 {+0.03/19 3.4s} Bb8 {+1.55/63 3.2s} 83. Bh7 {+0.03/23 3.3s}
Bc7 {+1.54/59 2.9s} 84. Be4 {+0.03/15 2.5s} Bb6 {+1.57/60 2.9s}
85. Ke2 {+0.02/17 3.1s} Kb4 {+1.64/63 3.1s} 86. Ke1 {+0.02/19 2.9s}
Ba5 {+1.64/62 3.0s} 87. Bh7 {+0.03/17 2.9s} Kc5+ {+1.65/60 2.9s}
88. Kd1 {+0.02/19 3.6s} Kd4 {+1.61/59 2.8s} 89. Bf5 {+0.02/22 3.0s}
Bb4 {+1.62/63 2.8s} 90. Ke2 {+0.02/19 2.5s} Kc3 {+1.63/61 3.0s}
91. Bg6 {+0.02/24 3.4s} Kb2 {+1.58/61 2.9s} 92. Bh7 {+0.02/25 2.9s}
Ka3 {+1.55/61 3.0s} 93. Kd1 {+0.02/27 3.1s} Ka4 {+1.58/60 3.3s}
94. Be4 {+0.02/28 2.6s} Kb5 {+1.45/57 3.2s} 95. Ke2 {+0.02/27 3.1s}
Ba5 {+1.49/59 2.8s} 96. Bd3+ {+0.02/27 3.1s} Kc5 {+1.54/58 2.8s}
97. Kd1 {+0.02/27 2.7s} Kd5 {+1.56/59 2.9s} 98. Ba6 {+0.02/24 2.9s}
Bc3 {+1.54/59 2.9s} 99. Bb7+ {+0.02/25 3.1s} Kd6 {+1.48/60 3.2s}
100. Ke2 {+0.02/24 3.4s} Kc5 {+1.41/59 2.9s} 101. Be4 {+0.02/25 2.7s}
Kb4 {+1.43/63 2.9s} 102. Bg6 {+0.02/27 3.0s} Be5 {+1.44/60 2.8s}
103. Bh5 {+0.02/24 2.8s} Bc7 {+1.54/58 2.9s} 104. Bg4 {+0.02/30 3.4s}
Kc5 {+1.56/58 3.5s} 105. Bc8 {+0.02/24 3.0s} Kd4 {+1.54/59 2.8s}
106. Bf5 {+0.02/25 2.6s} Bd6 {+1.55/59 3.0s} 107. Bh7 {+0.02/27 3.1s}
Ba3 {+1.56/57 2.8s} 108. Be4 {+0.02/28 3.2s} Be7 {+1.56/65 2.8s}
109. Bd3 {+0.02/28 3.0s} Bf6 {+1.56/68 2.9s} 110. Bh7 {+0.02/26 2.6s}
Kc3 {+1.56/68 3.1s} 111. Bf5 {+0.02/27 3.2s} Bd4 {+1.45/60 2.9s}
112. Kd1 {+0.02/29 3.0s} Be5 {+1.50/59 2.8s} 113. Be4 {+0.02/28 2.8s}
Kc4 {+1.51/62 2.8s} 114. Ke2 {+0.02/27 3.7s} Kb4 {+1.51/63 3.0s}
115. Bg6 {+0.02/24 2.6s} Bh8 {+1.50/61 3.8s} 116. Kd1 {+0.02/26 3.3s}
Kc4 {+1.40/59 3.3s} 117. Ke1 {+0.02/27 2.7s} Kd5 {+1.42/59 4.1s}
118. Ke2 {+0.02/26 2.7s} Bg7 {+1.45/54 2.7s} 119. Be4+ {+0.02/24 3.1s}
Kd6 {+1.47/57 3.0s} 120. Bf5 {+0.02/26 3.1s} Bf6 {+1.50/56 2.8s}
121. Bc8 {+0.02/27 3.2s} Bb2 {+1.52/59 2.8s} 122. Kd1 {+0.02/18 2.8s}
Kc5 {+1.45/60 2.8s} 123. Bf5 {+0.02/27 3.0s} Bf6 {+1.46/61 2.8s}
124. Bg6 {+0.02/26 2.9s} Bg7 {+1.48/59 4.3s} 125. Bf7 {+0.02/28 3.1s}
Kb5 {+1.48/57 3.3s} 126. Ke2 {+0.02/28 3.2s}
Bf6 {+1.49/59 3.0s, Draw by fifty moves rule} 1/2-1/2