tresinformal / drakkar

The tresinformal video game called 'Drakkar'
GNU General Public License v3.0
11 stars 4 forks source link

A game always starts at the zeroth tick #470

Closed richelbilderbeek closed 2 years ago

richelbilderbeek commented 2 years ago

Currently, when creating a game one needs to specify the tick (i.e. the frame number) the game is at:

# From game.h:

  game(const environment& the_environment = environment(),
      int num_players = 3,
       int n_ticks = 0,
       std::size_t n_shelters = 42,
       int n_enemies = 1,
       int n_food = 1,
       int seed = 0
       );

It makes no sense to make the game start at the -say- 1234th tick. Hence, it makes no sense to bother the user/programmer to be able to specify this.

When doing this, there will be tests that fail. These tests fails because a game is constructed with a certain n_ticks value (that will be zero). Fix those tests, by removing the -probably- 0, argument.