Re:1D Chess
by splonk on Saturday April 11, 2026 @04:56PM
(#47733963)
It's interesting that the page actually uses minimax to determine black's play. I kind of assumed it would be a simple lookup table given the small state space of the game. I suppose it makes it easier to add more variants.
[ Parent
| on HN ]
Re:1D Chess
by daynthelife on Sunday April 12, 2026 @06:29PM
(#47745216)
It clearly doesn't use minimax, since it doesn't play the best move for black in the critical line, leading to a mate in 5 instead if a mate in 6.
Best line is N4 N5, Nx6+ K7, R4 N3+!, K2 N5, N8! Kx8, Rx5#. The site has black instead play Kx6 on the third move, allowing a faster mate.