Unintuitive rounding issues (canSense(myLocation + mySensorRadius) is not always true)
Opened this issue · 1 comments
axc commented
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
jbloxham commented
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.