aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* update repo linkFlorian Fischer2025-01-271-1/+1
|
* rename ws to ws_connFlorian Fischer2021-01-101-15/+15
|
* change 'Salad' to 'Salat'Florian Fischer2021-01-102-2/+2
|
* provide docstrings for all modules, classes, and functionsFlorian Fischer2021-01-103-8/+28
|
* use logging lazy formatting instead of f-stringsFlorian Fischer2021-01-101-8/+8
|
* remove useless parenthesisFlorian Fischer2021-01-101-6/+6
|
* make reconnects more reliableFlorian Fischer2021-01-102-142/+196
| | | | | | | | | | | | * Keep track of a logical clock of draw events * The clock tells all clients if their stored last_drawn words are outdated * Try to reestablish a websocket when an error occurs or the socket gets closed * Alert the user about broken connections and try to reload the page * Don't display the amount of words in the schuessel instead show how many words are still to guess. This is equal for any client. * Rename words_drawn to words_guessed * Ran yapf on schuessel.py and server.py
* move pipenv files and style.yapf to root dirFlorian Fischer2021-01-103-0/+0
|
* remove egg.infoFlorian Fischer2021-01-107-30/+0
|
* add java script alert when a phase change occured during drawFlorian Fischer2021-01-092-3/+13
|
* only consider the current word for the word count of the active playerFlorian Fischer2021-01-091-1/+2
|
* store last drawn word in the browsers local storage to support reconnectsFlorian Fischer2021-01-092-11/+28
| | | | | | | | | | | | | | | | | | | Before this change last_word was only a javascript variable resetted on a reload. This means if a player's connection dropped during their turn and they reconnect their browser doesn't no that they actually have already drawn a word and thus will not count it as guessed. Now the last drawn word is stored in the browser's local storage and is persistent during reloads. This fixes the reconnect during once turn but allows a wrong situation: Player A draws stores the word and it connection drops. Player B draws some other words. Player A reconnects missing the events and draws a actuall new card but they restored their stored previously drawn word send it to the server and it will be counted as guessed. Fix this by storing an event count for the schuessel and only restore last_word if no actions occurred during the reconnect.
* don't panic when receiving a unknown actionFlorian Fischer2021-01-091-1/+1
|
* implement reset button and simplify htmlFlorian Fischer2021-01-092-16/+35
|
* mention cyberschuessel instance at cyberschuessel.muhq.spaceFlorian Fischer2021-01-091-0/+2
|
* fix typo in README and link to gpl3Florian Fischer2021-01-091-2/+4
|
* Improve readme and fix link to source in webpageFlorian Fischer2021-01-092-1/+14
|
* initial commitFlorian Fischer2021-01-0924-0/+1978