Games
Games copied to clipboard
Allow change who's playing during the game
In some cases a player might not be able to finish a game, in which case that player could be replaced with a bot or another player (a guest switching to another guest for example, until #108 is fixed).
Questions:
- How to save this information/change in database?
- How to show this information when watching a replay or when playing a game?
For games like Codenames it's especially nice if people can jump in/out of the game. (Out might not be necessary as at least the Spymasters should be in the game the whole time, and any person in the team can click).
Although it could be solvable just by adding new players as observers, it's nice if new players can be added to a team (easier to keep track of the teams at least).
For Codenames Duet it would be really helpful if people could join a team during the game
This game of Avalon was affected by this :( https://games.zomis.net/#/games/Avalon/42a0c57d-752b-432d-8a42-2b43e13aa61b Also seems like lots of guests gets new guest name when refreshing the page.
Maybe it would be possible to allow multiple players to have the same playerIndex? Or at least being set to the same "controller/view" playerIndex. That way if a player would disconnect and another player would magically appear, both of them could be set as the controller of a specific playerIndex, so both of them would be able to perform actions and see the same things.
Additionally, in games like Codenames it's ok to have multiple people being Spymaster. The site at codenames.game has done a great implementation of all this (it is the official page after all)
With inspiration from other sites, it would be nice to be able to reorganize some players - switch player positions essentially. Maybe only the creator of the game should be able to do this.
Then also have a "reset" button to re-make the setup process to randomize game state again
An idea is to make a "#meta" action type that includes changes of who's playing in a game, it could also include game resets (with the new randomness stored as state) and walkover/player-timeout information and other details.
Some games should allow dynamically more players, like Decrypto, which should be configurable easily in DSL
Frontend: Put something (icon? button?) at the top left where it says for example "Zomis' Games - Dungeon Mayhem"
Use a little drop-out that allows giving access rights to various players.
Also try to detect non-active players (Server will be aware of any disconnections) and give a possibility for the game host to replace those players. This possibility should be a bit restricted as there could be potential for abuse.