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

render_example_test.gno

0.52 Kb Β· 23 lines
 1package memory
 2
 3// ExampleRender pins the realm's Render output as a testable example.
 4func ExampleRender() {
 5	print(Render(""))
 6	// Output:
 7	// # 🧠 Memory Match
 8	//
 9	// Match all 8 emoji pairs on the 4x4 grid.
10	//
11	// | | | | |
12	// |:-:|:-:|:-:|:-:|
13	// | ❓ | ❓ | ❓ | ❓ |
14	// | ❓ | ❓ | ❓ | ❓ |
15	// | ❓ | ❓ | ❓ | ❓ |
16	// | ❓ | ❓ | ❓ | ❓ |
17	//
18	// - Moves: **0**
19	// - Pairs matched: **0 / 8**
20	// - Seed height: **123**
21	//
22	// Call `Flip(index)` with a cell index 0–15. `NewGame()` reshuffles.
23}