render_example_test.gno
0.67 Kb · 17 lines
1package rpsoracle
2
3// ExampleRender pins the realm's Render output as a testable example.
4func ExampleRender() {
5 print(Render(""))
6 // Output:
7 // # Rock-Paper-Scissors Oracle
8 //
9 // An adaptive opponent: it doesn't roll dice, it studies you. Every throw is logged, and the oracle always counters whichever move you've played most often. Play a uniform mixed strategy and it can't out-guess you; fall into a habit and it will.
10 //
11 // - Total rounds played: 0
12 // - No one has beaten the oracle yet.
13 //
14 // ## How to play
15 //
16 // Call `Play("rock"|"paper"|"scissors")` (or `r`/`p`/`s`). View your own record at this realm's path plus your address, e.g. `.../rpsoracle:g1youraddress...`
17}