package
Version:
v1.9.0
Opens a new window with list of versions in this module.
Published: Mar 22, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func AddWeeks(weekStart time.Time, delta int) time.Time
-
func BonusXP(index int) int
-
func Mode(year, week, index int) (game.SeededSpawner, string, string)
-
func Name(year, week, index int) string
-
func NameForDate(date time.Time, index int) string
-
func Prefix(year, week int) string
-
func RNG(year, week, index int) *rand.Rand
-
func Seed(year, week, index int) uint64
-
func StartOfWeek(year, week int, loc *time.Location) time.Time
-
type Entry
-
type Info
AddWeeks moves to the next or previous ISO week.
BonusXP returns the slot-based bonus XP for a completed weekly puzzle.
Mode selects the weekly mode from the daily-eligible pool using rendezvous
hashing on the canonical weekly name.
Name returns the canonical persisted name for a weekly puzzle.
NameForDate returns the weekly puzzle name for the date's ISO week.
Prefix returns the exact query prefix for all rows in a weekly gauntlet.
RNG creates a deterministic RNG seeded from the weekly identity.
Seed returns a deterministic uint64 seed derived from the weekly identity.
StartOfWeek returns the Monday for the given ISO week.
type Info struct {
Year int
Week int
Index int
}
Info identifies a single weekly gauntlet puzzle.
Current returns the current ISO week identity for the provided date.
ParseName parses a canonical weekly name.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.