Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

render_example_test.gno

0.60 Kb · 22 lines
 1package wordle
 2
 3// ExampleRender pins the realm's Render output as a testable example.
 4func ExampleRender() {
 5	print(Render(""))
 6	// Output:
 7	// # 🟩 Daily Word Puzzle
 8	//
 9	// A Wordle-like game. Everyone gets the same secret 5-letter word each "day" (a span of blocks). You have 6 attempts.
10	//
11	// **Day #0**
12	//
13	// _No guesses yet today._
14	//
15	// ## Rules
16	//
17	// - Guess the 5-letter word in 6 tries: `Guess("crane")`.
18	// - 🟩 correct letter, correct spot.
19	// - 🟨 correct letter, wrong spot.
20	// - ⬜ letter not in the word.
21	// - The word changes every day (deterministic from block height).
22}