Commit 35a4ecf
authored
Fix fullmove counter handling in move application (#1035)
The move counter previously was being increased on the wrong moves.
Before:
Fen 1: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
Move 1: position startpos moves e2e4
Fen 2: rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2
(Wrong)
After:
Fen 1: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
Move 1: position startpos moves e2e4
Fen 2: rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1
(Correct)
STC
Elo | 1.60 +- 2.11 (95%)
SPRT | 8.0+0.08s Threads=1 Hash=16MB
LLR | 2.95 (-2.25, 2.89) [-2.75, 0.25]
Games | N: 27206 W: 7005 L: 6880 D: 13321
Penta | [115, 3031, 7195, 3138, 124]
https://recklesschess.space/test/14826/
Bench: 28470811 parent d20f8c6 commit 35a4ecf
3 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
| |||
0 commit comments