Re:Analog Chess – pieces are not constrained to a grid
by gmoot on Friday January 13, 2023 @05:54PM
(#34375039)
Then it's checkmate, not stalemate. For a stalemate you need a situation where the king is not in check, but there are no legal moves. It seems impossible in practice, if not in theory.
[ Parent
| on HN ]
Re:Analog Chess – pieces are not constrained to a grid
by Someone on Friday January 13, 2023 @06:13PM
(#34375214)
You can have stalemate with two rooks or two bishops enclosing a square just large enough to contain the king.
A queen and a rook or bishop also can enclose a triangular area that is just large enough to contain the king.
(Talking of bishops: should this game require bishops to stay on squares of their starting colour?)
Re:Analog Chess – pieces are not constrained to a grid
by mythas on Friday January 13, 2023 @10:47PM
(#34377220)
How close to the king are they covering? .0000001 units? The king can move .00000009 units. You can always make a smaller real number.
Re:Analog Chess – pieces are not constrained to a grid
by NineStarPoint on Friday January 13, 2023 @11:09PM
(#34377316)
In theory yes. In practice, python uses floating point numbers for decimals so there is actually a minimum possible move and a finite number of allowed decimals.
Re:Analog Chess – pieces are not constrained to a grid
by ehulinsky on Saturday January 14, 2023 @02:26AM
(#34378080)
Also the game only has a resolution of 640x640 pixels, and you cant move the mouse a half pixel. But anyways, stalemate basically requires very precise positioning by the attacker, so it is VERY unlikely to actually happen, especially since they are trying to avoid stalemate.
Re:Analog Chess – pieces are not constrained to a grid
by srcreigh on Saturday January 14, 2023 @02:42AM
(#34378152)
The king can put himself in check too, so the defender would have to cooperatively allow checkmate (instead of capturing the other pieces)
Re:Analog Chess – pieces are not constrained to a grid
by Someone on Saturday January 14, 2023 @11:48AM
(#34381644)
Not if the distance is zero, and that’s mathematically doable and possible in IEEE floats, certainly for the two rooks or two bishops version.
Re:Analog Chess – pieces are not constrained to a grid
by jjnoakes on Friday January 13, 2023 @11:58PM
(#34377502)
> Talking of bishops: should this game require bishops to stay on squares of their starting colour?
Given how captured work and how you'd probably define "on a square" with white a bit of freedom (perhaps the center of the piece has to be within the square?) I doubt it'd matter much either way.