better game overview, start/finish time
This commit is contained in:
parent
af5364155f
commit
69ab049f50
7 changed files with 142 additions and 27 deletions
|
|
@ -78,6 +78,8 @@ app.use('/', async (req, res, next) => {
|
|||
const games = [
|
||||
...Game.getAllGames().map(game => ({
|
||||
id: game.id,
|
||||
started: game.puzzle.data.started,
|
||||
finished: game.puzzle.data.finished,
|
||||
tilesFinished: Game.getFinishedTileCount(game.id),
|
||||
tilesTotal: Game.getTileCount(game.id),
|
||||
players: Game.getActivePlayers(game.id).length,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue