Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
axc opened this issue Jan 16, 2017 · 1 comment

Comments

@axc
Copy link

axc commented Jan 16, 2017

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants