octachrome / treason

A clone of the card game Coup written in Node.js
Other
139 stars 79 forks source link

"Waiting for blocks/challenges" should indicate who needs to play #41

Open dnathe4th opened 4 years ago

dnathe4th commented 4 years ago

It can be frustrating in-game to know you're waiting for someone to respond to a block / challenge without knowing who to shame (especially if all players are on a zoom together or something.

I hacked this together on a branch (complicated by the diffs I have outstanding) to add a waitingOnAllowsFrom list to state to emit down to clients and render in the game-actions.js UI. This worked, but I didn't feel great about it since emitState (to get it down to the clients) is usually only called when the game actually progresses forward.

After some of my other diffs land and I ugly rebase I can put a draft PR up and we can pick it apart.