-
Notifications
You must be signed in to change notification settings - Fork 97
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
Explain rules in a little bit more detail. #226
Comments
I too struggled with these questions. This is what I think:
I hope that answers your questions. I think it would be great to add a documented page on the pseudocode that one would need to implement to evaluate a game frame. Most people are going to want to re-implement the game logic in their code so that their AI can make predictions about the value of future actions. Edit: I am actually less sure about point number 3 now. Based on the 'Turns' section of this page (https://halite.io/rules_game.php) I would actually say that the strength update and cap happens BEFORE the attack calculations are computed. |
Another situation that I ran into today when writing my bot: If you have a board with the following two pieces (surrounded by unowned pieces):
And you make the move:
Then is the final state:
Or:
As in, does the piece at (2, 1) gain strength as well as the merge or does a merge negate the production strength gain? Not totally clear from the documentation. I think that the first case is what happens and I'll be reading the source to confirm. |
Currently the intro doesn't explain:
Does production change over time?
Do all players move simultaneously? (Thus you can exchange position with other player next to you)
Does strength increase phase take place before / after attack phase?
The text was updated successfully, but these errors were encountered: