Added tracking of a player's state

This commit is contained in:
Leon Mika 2025-06-20 14:00:23 +02:00
parent 64a2d4f9cb
commit 332cfd9fca
10 changed files with 95 additions and 19 deletions

View file

@ -17,6 +17,7 @@ type Choice struct {
}
type Question struct {
ID string
Text string
Choices []Choice
Fact string
@ -38,6 +39,7 @@ func (q Question) Render() (RenderedQuestion, error) {
}
return RenderedQuestion{
ID: q.ID,
Question: q.Text,
Fact: q.Fact,
Choices: choices,
@ -51,6 +53,7 @@ type RenderedChoice struct {
}
type RenderedQuestion struct {
ID string
Question string
Fact string
Choices []RenderedChoice