peter1591 / hearthstone-ai

A Hearthstone AI based on Monte Carlo tree search and neural nets written in modern C++.
302 stars 49 forks source link

Test random before choose #56

Closed peter1591 closed 7 years ago

peter1591 commented 7 years ago

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
peter1591 commented 7 years ago

Tested by card: I know a guy