battlecode-server-2017 icon indicating copy to clipboard operation
battlecode-server-2017 copied to clipboard

Unintuitive rounding issues (canSense(myLocation + mySensorRadius) is not always true)

Open axc opened this issue 9 years ago • 1 comments

Not sure if we'd consider this a bug or just expected behavior (due to floating point precision). This also applies for the MapLocation equals method.

http://battlecodeforum.org/t/assertcansenselocation-is-bugged/434

axc avatar Jan 16 '17 18:01 axc

I suspect some of these results, especially darkshark's new MapLocation(513.516327, 432.636902) == [513.516357, 432.636902] (there IS a difference in those coordinates) may be a result of strictftp being used in the MapLocation class but (potentially) not in player code. This would then be related to #302.

jbloxham avatar Jan 17 '17 01:01 jbloxham