daily

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mode

func Mode(rng *rand.Rand) (game.SeededSpawner, string, string)

Mode selects the daily mode from the eligible pool using the seeded RNG. Returns the spawner, game type name, and mode title.

func Name

func Name(date time.Time, rng *rand.Rand) string

Name generates the daily puzzle name in the format: "Daily Feb 14 26 - amber-falcon"

NOTE: this must be called before Mode on the same RNG — the number of draws here determines which mode is selected. Changing this function will shift daily puzzles for all future dates.

func RNG

func RNG(date time.Time) *rand.Rand

RNG creates a deterministic RNG seeded from the given date.

func Seed

func Seed(date time.Time) uint64

Seed returns a deterministic uint64 seed derived from the date.

Types

type Entry

type Entry struct {
	Spawner  game.SeededSpawner
	GameType string
	Mode     string
}

Entry pairs a SeededSpawner with metadata for the eligible daily pool.

Jump to

Keyboard shortcuts

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