News for hackers. Stuff that matters.
Re:Analog Chess – pieces are not constrained to a grid by rjmunro on Saturday January 14, 2023 @10:54AM (#34381231)
This is a classic example of something that should be fixed point, not floating point. Just represent positions internally as an integer between 0 and some large maximum. You could use the number of screen pixels, or a larger value if you want to allow e.g. precise moves by zooming in.

There are no comments on this comment yet.