You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK :-)
I would have registered one `Time.every` subscription triggering a
`Tick` message, then I would have written the `Tick` case in `update`
like so:
```elm
Tick time ->
(afterMoveModel, afterMoveCmd) = model
|> updateDirection
|> moveSnake model
```
This is not tested!
Hi there!
I just read the code and I'm wondering why there are 2 subscriptions.
The
update
cases could be factorized.:-)
The text was updated successfully, but these errors were encountered: