News for hackers. Stuff that matters.
Re:Analog Chess – pieces are not constrained to a grid by AstixAndBelix on Friday January 13, 2023 @02:13PM (#34372460)
you can’t represent the real plane on a computer. you can only have a limited amount of precision that effectively results in very dense grid, but a grid nonetheless
Re:Analog Chess – pieces are not constrained to a grid by bspammer on Friday January 13, 2023 @04:27PM (#34374116)
I don't think it can even be called a grid, as the gaps between points aren't the same length.
Re:Analog Chess – pieces are not constrained to a grid by AstixAndBelix on Friday January 13, 2023 @05:00PM (#34374490)
depends on your choice of floating point standard, you're right for the current IEEE one
Re:Analog Chess – pieces are not constrained to a grid by ErikCorry on Friday January 13, 2023 @05:26PM (#34374758)
If the gaps are all the same size, isn't it fixed point rather than floating point?
Re:Analog Chess – pieces are not constrained to a grid by AstixAndBelix on Friday January 13, 2023 @06:26PM (#34375328)
I mean, if your board has a fixed zoom level you have to fix a certain precision
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.
Re:Analog Chess – pieces are not constrained to a grid by jakear on Friday January 13, 2023 @05:12PM (#34374626)
are you able to represent it some place else?
Re:Analog Chess – pieces are not constrained to a grid by AstixAndBelix on Friday January 13, 2023 @05:58PM (#34375083)
what does this mean?
Re:Analog Chess – pieces are not constrained to a grid by jakear on Saturday January 14, 2023 @05:02PM (#34384578)
You stared real numbers are not representable, but specified “on computers”. Is there some medium they can be represented upon? Math papers is my only guess - but I read those on computers :)
Re:Analog Chess – pieces are not constrained to a grid by jakear on Sunday January 15, 2023 @05:34AM (#34388393)
*stated