davidje13 / koth-webplayer

Framework for King-of-the-Hill Javascript competitions
MIT License
7 stars 7 forks source link

Store chosen entries in permalink hashes #2

Open davidje13 opened 7 years ago

davidje13 commented 7 years ago

If entries have been deselected, or filtered by a tournament, this is not reflected in the game hash which is provided as a permalink. This means it is not a viable way to replay a particular game exactly. This is also problematic for free-for-all games when new entries are submitted.

This would require storing the teams involved in a game, their ordering, their entries, and their entries' ordering. Ideally without making the hash much longer.

Consistent handling of added entries is less important, since the code cannot be shared in any case, but whatever system is introduced should not break for new entries (within the same browser session, implementing #1 should mean that the code will still be available)