peter1591/hearthstone-ai

Test random before choose

Closed this issue · 1 comments

Some special logics are introduces to deal with random choices

In current implementation, a random choice is moved conceptually to the end of a main-action-sequence.

After analysis, only one type of action can be happened after a random action. For example:

  1. Generate a random number
  2. Generate some choices, depending on the generated random number
  3. Ask player to choose one from the choices

All other sub-action types are not influenced by randoms.
But, the card ids of the user-choose options, might be determined by a random.

Need to write some tests to test the AI's ability to tackle this thing.

In real cards, this includes:

  1. Discover effect
  2. Adapt

Tested by card: I know a guy