Fix: show clue input only if game is running
This commit is contained in:
@ -62,11 +62,13 @@
|
|||||||
{{template "cardtable" .Room}}
|
{{template "cardtable" .Room}}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
{{if .Room.IsRunning}}
|
||||||
{{if and (eq .State.Role "guesser") (eq .State.Team .Room.TeamTurn)}}
|
{{if and (eq .State.Role "guesser") (eq .State.Team .Room.TeamTurn)}}
|
||||||
<button hx-get="/end-turn" hx-target="#room" class="bg-amber-100 text-black px-4 py-2 rounded">End Turn</button>
|
<button hx-get="/end-turn" hx-target="#room" class="bg-amber-100 text-black px-4 py-2 rounded">End Turn</button>
|
||||||
{{else if and (eq .State.Role "mime") (not .Room.MimeDone)}}
|
{{else if and (eq .State.Role "mime") (not .Room.MimeDone)}}
|
||||||
{{template "mimeclue"}}
|
{{template "mimeclue"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{{if and (eq .State.Username .Room.CreatorName) (.Room.IsRunning)}}
|
{{if and (eq .State.Username .Room.CreatorName) (.Room.IsRunning)}}
|
||||||
|
9
todos.md
9
todos.md
@ -24,6 +24,7 @@
|
|||||||
- clear indication that model (llm) is thinking / answered;
|
- clear indication that model (llm) is thinking / answered;
|
||||||
- different files for each supported lang;
|
- different files for each supported lang;
|
||||||
- possibly turn markings into parts of names of users (first three letters?);
|
- possibly turn markings into parts of names of users (first three letters?);
|
||||||
|
- sse div to bot thinking
|
||||||
|
|
||||||
#### sse points
|
#### sse points
|
||||||
- clue sse update;
|
- clue sse update;
|
||||||
@ -48,11 +49,11 @@
|
|||||||
- 0 should mean without limit; +
|
- 0 should mean without limit; +
|
||||||
- remove join as mime button if there is a mime already on that team (rewrite teampew templ); +
|
- remove join as mime button if there is a mime already on that team (rewrite teampew templ); +
|
||||||
- bot clues to lowercase; +
|
- bot clues to lowercase; +
|
||||||
|
- guesser bot no request after game restart; (not a bug)
|
||||||
|
- openrouter 429 errors (retry); +
|
||||||
|
- retry call to llm (if 400|429|4xx); +
|
||||||
|
- there is a clue window for a mime before game started; +
|
||||||
- sse hangs / fails connection which causes to wait for cards to open a few seconds (on local machine) (did not reoccur so far);
|
- sse hangs / fails connection which causes to wait for cards to open a few seconds (on local machine) (did not reoccur so far);
|
||||||
- invite link gets cutoff;
|
- invite link gets cutoff;
|
||||||
- guesser bot no request after game restart;
|
|
||||||
- openrouter 429 errors (retry);
|
|
||||||
- there is a clue window for a mime before game started;
|
|
||||||
- retry call to llm (if 400|429|4xx);
|
|
||||||
- when llm guesses the word it is not removed from a pool of words making it keep guessing it;
|
- when llm guesses the word it is not removed from a pool of words making it keep guessing it;
|
||||||
- bot team does not loses their turn after white card (or limit);
|
- bot team does not loses their turn after white card (or limit);
|
||||||
|
Reference in New Issue
Block a user