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

Attack Chains doesn't seem to be enabled even for Bronze #1

Open
nanaeda opened this issue May 25, 2023 · 2 comments
Open

Attack Chains doesn't seem to be enabled even for Bronze #1

nanaeda opened this issue May 25, 2023 · 2 comments

Comments

@nanaeda
Copy link

nanaeda commented May 25, 2023

I'm sorry if this is not the right place to report this.
But, I feel the following part of the code should use LOSING_ANTS_CANT_CARRY not LOSING_ANTS_CANT_MOVE. The latter is always false while the former is false only during Wood, which is aligned with the rule description.
I can also see the Attack Chains rule not being applied on game replays.

LinkedList<Cell> bestPathToHill = board.getBestPath(foodCell, anthillCell, player.getIndex(), Config.LOSING_ANTS_CANT_MOVE);

@nanaeda nanaeda changed the title Attack Chains doesn't seem to be applied even for Bronze Attack Chains doesn't seem to be enabled even for Bronze May 26, 2023
@CGjupoulton
Copy link
Contributor

You are correct. Additionally, attack chains weren't taken into account on the cell of the resource itself

@nanaeda
Copy link
Author

nanaeda commented May 26, 2023

Thank you for your check and quick fix!

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