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

Is this a bug in Halite/environment/core/Halite.cpp ? #284

Closed
erdman opened this issue Nov 29, 2016 · 1 comment
Closed

Is this a bug in Halite/environment/core/Halite.cpp ? #284

erdman opened this issue Nov 29, 2016 · 1 comment

Comments

@erdman
Copy link
Contributor

erdman commented Nov 29, 2016

I was looking for something else, but I came across this in lines 197 & 198:

full_strength_count[game_map.contents[a][b].owner - 1] += game_map.contents[a][b].strength;
full_production_count[game_map.contents[a][b].owner - 1] += game_map.contents[a][b].strength;

I couldn't quite work out what's going on here (don't speak cpp), but it looks like your adding .strength to full_strength_count, and also adding .strength to full_production_count? I suspect you might want to be adding .production there?

@truell20
Copy link
Contributor

truell20 commented Dec 4, 2016

@Sydriax has informed me: This is indeed a bug, but on some dead code that is still in the environment that was for calculating various statistics (we will remove the dead code)

@truell20 truell20 closed this as completed Dec 4, 2016
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