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

Two issues noticed with the game's AI #13

Open
milesizydorczak12 opened this issue Jun 4, 2020 · 0 comments
Open

Two issues noticed with the game's AI #13

milesizydorczak12 opened this issue Jun 4, 2020 · 0 comments

Comments

@milesizydorczak12
Copy link

  1. Due to the nature of the calculate attack points function, the void card will always have the attack points 0, and will not get chosen by the AI until it is the last card left. The simple fix is just to add the line in that function: if (card1.type == VOID) result = card2.attack_points;

  2. Another issue I noticed is that the player's selected card is played and set to the empty card before the AI performs its calculations. This will result in the AI making its card selection based off only the three cards that the player did not select.

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