Documentation
¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mode ¶
func Mode(year, week, index int) (game.SeededSpawner, string, string)
Mode selects the weekly mode from the daily-eligible pool using rendezvous hashing on the canonical weekly name.
func NameForDate ¶
NameForDate returns the weekly puzzle name for the date's ISO week.
Types ¶
type Entry ¶
type Entry struct {
Spawner game.SeededSpawner
GameType string
Mode string
}
Entry pairs a SeededSpawner with metadata for the eligible weekly pool.
Click to show internal directories.
Click to hide internal directories.