eosio-card-game-repo icon indicating copy to clipboard operation
eosio-card-game-repo copied to clipboard

Two issues noticed with the game's AI

Open milesizydorczak12 opened this issue 5 years ago • 0 comments

  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.

milesizydorczak12 avatar Jun 04 '20 20:06 milesizydorczak12