blocksPerDay
untyped bigintblocksPerDay is the number of blocks that constitutes one "day" / one round. The secret word is fixed for the whole span, then rotates.
Value
(7200 <untyped> bigint)
maxWrong
untyped bigintmaxWrong is the number of wrong guesses allowed before the game is lost.
Value
(6 <untyped> bigint)
words
[]stringwords is the built-in dictionary. Kept lowercase, letters only.
- OID
- 0a866b…9a43:4
words details
round
typeround holds the shared state for a single day's game.
Value
v0.round
rounds
*v0.Treerounds maps a day index (decimal string) to its round. Persisted across calls.
- OID
- 0a866b…9a43:6
rounds details
dayIndex
func() int64dayIndex returns the current day index derived from block height.
- OID
- 0a866b…9a43:8
dayIndex details
wordForDay
func(day int64) stringwordForDay picks a word deterministically from the list for the given day.
- OID
- 0a866b…9a43:10
wordForDay details
dayKey
func(day int64) stringdayKey formats a day index as a stable decimal string key.
- OID
- 0a866b…9a43:11
dayKey details
current
func() *v0.roundcurrent returns (creating if needed) the round for the current day.
- OID
- 0a866b…9a43:12
current details
normalizeLetter
func(letter string) (string, bool)normalizeLetter lowercases and validates a single a-z letter, returning it and true on success.
- OID
- 0a866b…9a43:13
normalizeLetter details
Guess
func(letter string)Guess submits a single letter for the current day's shared game. It reveals matching letters or costs a life. Aborts on bad input or when the game is already over.
- OID
- 0a866b…9a43:14
Guess details
unsafeCaller
func() stringunsafeCaller returns the caller address as a string, preferring the crossing convention when available.
- OID
- 0a866b…9a43:15
unsafeCaller details
boolStr
func(b bool) stringboolStr renders a bool compactly.
- OID
- 0a866b…9a43:16
boolStr details
itoa
func(n int64) stringitoa renders an int64 as decimal (avl-free tiny helper reused by Render).
- OID
- 0a866b…9a43:17
itoa details
gallows
func(wrong int) stringgallows renders the ASCII stage for the given wrong-count (0..6).
- OID
- 0a866b…9a43:18
gallows details
Render
func(path string) stringRender shows the current day's game: gallows, masked word, guesses, status.
- OID
- 0a866b…9a43:19