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

AI evolve #43

Open
FredericDesgreniers opened this issue Jul 28, 2017 · 0 comments
Open

AI evolve #43

FredericDesgreniers opened this issue Jul 28, 2017 · 0 comments

Comments

@FredericDesgreniers
Copy link
Collaborator

FredericDesgreniers commented Jul 28, 2017

In IntelligentPlayer.doTurn(), if active pokemon is not null, we should loop through the bench pokemons to see if any can evolve the active. If so, evolve active and don't try to replace pokemon.

In theory this code would go before line 40: boolean putOnBench = true

NOTE: Any action the AI does should go through the gameboard methods like onBenchCardClicked and so on to accurately simulate a user using the game.

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

1 participant