# Daily Word Puzzle
> ⚠️ **Experimental — generated with no human supervision.** This realm was
> produced automatically by an MCP-driven agent to exercise the gno MCP server
> and tooling, and to generate test content for gno compilers, linters and
> formatters. **Not audited. Not for production.** Full context & folder README:
> [r/moul/x/daily](https://github.com/moul/gno-contracts/blob/main/r/moul/x/daily/README.md)
---
A Wordle-like realm for gno.land (gno 0.9 / sapphire). Every "day" — a span of
blocks derived deterministically from the block height — the realm picks one
secret 5-letter word from a built-in 15-word dictionary. Players submit guesses
and get per-letter emoji feedback (🟩 correct spot, 🟨 wrong spot, ⬜ absent),
with up to 6 attempts per day and a per-caller board rendered as Markdown.
## Realm path
`gno.land/r/REPLACE_ADDR/wordle`
## How it works
- The day index is `ChainHeight() / blocksPerDay`; the secret word is
`words[day % len(words)]` — fully deterministic, no randomness.
- `Guess(word)` is a crossing function (`Guess(cross(cur), word)`) that records
a guess for the caller against today's word. Boards reset automatically when a
new day rolls over.
- `Render(path)` shows the calling viewer's board, attempts left, win/lose state,
and the rules legend.
## Example calls
```sh
# submit a guess (crossing tx)
gnokey maketx call \
-pkgpath "gno.land/r/REPLACE_ADDR/wordle" \
-func Guess -args "crane" \
-gas-fee 1000000ugnot -gas-wanted 2000000 \
-broadcast -chainid sapphire-1 <keyname>
```
View the board in gnoweb at:
```
https://gno.land/r/REPLACE_ADDR/wordle
```
## Test
```sh
gno test .
```
<!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) -->
---
Part of **[moul/gno-contracts](https://github.com/moul/gno-contracts)** — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.
> 🧪 **Highly experimental — potentially vibe-coded.** Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).
<!-- END GNOCONTRACTS FOOTER -->
Guess(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, word string)
Render(path string) string
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.