richelbilderbeek / djog_unos_2018

Project by the Uno's at DJOG 2018-2019: Nature Zen
GNU General Public License v3.0
6 stars 2 forks source link

Implement 'collect_all_game_states' #578

Closed richelbilderbeek closed 5 years ago

richelbilderbeek commented 5 years ago

Is your feature request related to a problem? Please describe.

Currently, there is no way to collect all game_states. This is useful in debugging, so it must be added.

Describe the solution you'd like

  //#define FIX_ISSUE_578
  #ifdef FIX_ISSUE_578
  //Can collect all game states
  {
    const std::vector<game_state> v = collect_all_game_states();
    assert(v.empty());
  }
  #endif //FIX_ISSUE_578

Activate it by removing the comments from //#define FIX_ISSUE_578

Done!

Describe alternatives you've considered

None.

Additional context

None.

richelbilderbeek commented 5 years ago

Someone needs to do the last the items of the Issue. Good luck :+1:

AramPetiet commented 5 years ago

Done! :100: