eebca998cb
Manage game state through object injection everywhere, fixed filling buffer and stopping clock in Game.
2020-12-21 17:27:16 +01:00
c4b914ccfd
Added game state to all components, renamed timeout to timeoutMilliseconds, removed score from savegame.
2020-12-21 15:48:20 +01:00
Erik Schilling
76a1dd8774
Move Game config into separate object
...
The 4 constructor arguments already were a bit confusing with two
`number` types, also the game config will likely be the output of the
matrix generator, so it makes sense to have a separate interface for
that anyway.
2020-12-18 13:16:50 +01:00
Erik Schilling
d7bf259964
Do not allow picking cells twice
2020-12-17 15:58:50 +01:00
Erik Schilling
76fdd5ffe1
Time management
...
The game now fails after a configurable amount of time. Winning pauses
the clock.
2020-12-16 22:16:18 +01:00
Erik Schilling
480daf284e
Allow winning or losing
2020-12-16 22:16:18 +01:00
Erik Schilling
cac159bd89
Implement buffer filling and sequence fulfillment
2020-12-16 20:03:17 +01:00
Erik Schilling
a449ab89e0
Started on the game logic
2020-12-16 18:59:53 +01:00