README.md

# 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 / test13). 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 test13 <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 -->