ugur-akin / algo-robo

0 stars 0 forks source link

Simulator #7

Open ugur-akin opened 3 years ago

ugur-akin commented 3 years ago

Implement a Simulator module that takes the level state and a command, and computes the next level state after executing the given step.

The Simulator should have only have a next() method on its interface. Game manager will call this method passing its current level state and the next command in the user input sequence to get a new level state. Simulator should return updated versions of all the state information specified in the Level State issue page, which currently states the following:

Therefore, the game manager should:

Retrieve the relevant from levelInformation and remember it. Use that information to initialize its state with it. Have/maintain a state that holds the lit up tiles. Have/maintain a state that holds character position (i.e. coordinates of a tile unless out of bounds). Be able to reset/reinitialize these states when needed (i.e. when game state changes).