forked from katiejiang/1n-werewolf
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
code improvementwon't necessarily enhance the functionality, but will make for better codewon't necessarily enhance the functionality, but will make for better code
Description
There are bits of code in the client like:
Games.update(gameID, {$set: {state: 'nightTime', deaths: [], injuries: []}});For a prototype this is fine, but longer term it would be preferable to have a cleaner api where onlt the server can access mongo. There are two main reasons:
- All the state modification code lives in one place making it easier to reason about
- Allows you to put checks in ensuring there isn't a vote on before starting nighttime. Currently this relies on the sleep button not being present on the ui.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
code improvementwon't necessarily enhance the functionality, but will make for better codewon't necessarily enhance the functionality, but will make for better code