Skip to content

Two issues noticed with the game's AI #13

@milesizydorczak12

Description

@milesizydorczak12
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions