session

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func GenerateUniqueName(s *store.Store) string

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

func NormalizeSeed(seed string) string

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

func SeededName(seed string) string

SeededName derives the deterministic display name for a seeded puzzle.

func SeededNameForGame added in v1.8.0

func SeededNameForGame(seed, gameType string) string

SeededNameForGame derives the deterministic display name for a seeded puzzle locked to a specific game.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL