Try if it sees the following position as a win in 1:
[d]8/8/8/8/8/8/p7/k2K3F w
And
[d]7R/8/8/8/8/K7/8/kf6 w
Moderators: hgm, Rebel, chrisw
A slight inconvenence is that PCHR should be ordered differently to reflect piece values but I guess this is not significant or worth to be special.syzygy wrote: ↑Sun Sep 29, 2024 4:06 pmNice. I hope the generator is now fully correct. I have not extensively tested stalemate, etc.noobpwnftw wrote: ↑Sun Sep 29, 2024 7:26 am I'll do the full 6 men tables with your generator.
https://www.chessdb.cn/egtb_infoj.html
Files will be shared after they are built.
There should be 360 tables with 4/5/6 pioeces (15/75/270).
It looks like-Fairy Stockfish uses the same letters, i.e. Q for the ferz and B for the alfil:noobpwnftw wrote: ↑Sun Sep 29, 2024 5:34 pmA slight inconvenence is that PCHR should be ordered differently to reflect piece values but I guess this is not significant or worth to be special.syzygy wrote: ↑Sun Sep 29, 2024 4:06 pmNice. I hope the generator is now fully correct. I have not extensively tested stalemate, etc.noobpwnftw wrote: ↑Sun Sep 29, 2024 7:26 am I'll do the full 6 men tables with your generator.
https://www.chessdb.cn/egtb_infoj.html
Files will be shared after they are built.
There should be 360 tables with 4/5/6 pioeces (15/75/270).
https://www.abstractgames.org/shatranj1.html
The rules of Shatranj are the same as the standard Western game, with the same setup, except for the following:
- The game is won by checkmate, by capturing all opposing pieces except the enemy King, or by stalemate.
- The Bishop is replaced by the Elephant, which jumps two squares diagonally. This piece is still present in XiangQi.
- The Queen is replaced by the Fers (Advisor) that moves one square diagonally. This piece is still to be found in both Thai Makruk and XiangQi.
- The Pawn moves only one square, even on its first move. There is no en passant.
- When the Pawn reaches the last row, it automatically becomes a Fers. Multiple Ferses are allowed.
- There is no castling.
- Instead of the 50 move draw rule, there is a 70 move draw rule (Hooper and Whyld, 1992). In other words, a player can claim a draw if each player has made 70 moves, during which no capture has been made and no Pawn has been moved.
No need, the generation phase uses full precision with 1 byte per position by reducing all values every so many iterations. The information that is removed is stored to disk and everything is reconstructed later.noobpwnftw wrote: ↑Sun Sep 29, 2024 7:21 pm It would be easier to use 2 bytes per pos without precision issue.