Documentation
¶
Index ¶
- func CreateRecord(s *store.Store, g game.Gamer, name string, gameType string, modeTitle string) (*store.GameRecord, error)
- func GenerateUniqueName(s *store.Store) string
- func ImportRecord(rec *store.GameRecord) (game.Gamer, error)
- func NormalizeSeed(seed string) string
- func ResumeAbandonedDeterministicRecord(s *store.Store, rec *store.GameRecord) error
- func SeededName(seed string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRecord ¶
func CreateRecord( s *store.Store, g game.Gamer, name string, gameType string, modeTitle string, ) (*store.GameRecord, error)
CreateRecord persists the initial state for a newly created game.
func GenerateUniqueName ¶
GenerateUniqueName generates a unique adjective-noun name, retrying if needed.
func ImportRecord ¶
func ImportRecord(rec *store.GameRecord) (game.Gamer, error)
ImportRecord reconstructs a saved game and reapplies the record title.
func NormalizeSeed ¶
NormalizeSeed keeps seeded names distinct from real dailies.
func ResumeAbandonedDeterministicRecord ¶
func ResumeAbandonedDeterministicRecord(s *store.Store, rec *store.GameRecord) error
ResumeAbandonedDeterministicRecord marks an abandoned deterministic game as in-progress before resuming it.
func SeededName ¶
SeededName derives the deterministic display name for a seeded puzzle.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.