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

All properties on entity #10

Closed peter1591 closed 7 years ago

peter1591 commented 7 years ago

Similar to tag framework

Pros:

  1. To get attributes, we only need to operate on entities
  2. state::Board acts as a index of the card references. E.g., to quickly enumerate over all minions.

Cons:

  1. Many fields on entity

Current decision:

peter1591 commented 7 years ago

Fields of minions, weapons, hero-powers, heros are stored in state::Cards::Card Other flags are stored on state::board::Board