Feat: start game btn; add todos.md

This commit is contained in:
Grail Finder
2025-05-09 09:28:30 +03:00
parent 659c8dbbec
commit e20118acea
5 changed files with 42 additions and 14 deletions

View File

@ -47,7 +47,7 @@ type UserState struct {
Role UserRole
}
func MakeTestState() *FullInfo {
func MakeTestState(creatorName string) *FullInfo {
cards := []WordCard{
{Word: "hamster", Color: "blue"},
{Word: "child", Color: "red"},
@ -80,14 +80,14 @@ func MakeTestState() *FullInfo {
room := &Room{
ID: "test-id",
CreatedAt: time.Now(),
CreatorName: "test-name",
CreatorName: creatorName,
Cards: cards,
RedTeam: redTeam,
BlueTeam: blueTeam,
TeamTurn: "blue",
}
us := &UserState{
Username: "test-name",
Username: creatorName,
Team: UserTeamNone,
Role: UserRoleNone,
RoomID: "test-id",