Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

challenge.gno

0.94 Kb · 28 lines
 1package vintage
 2
 3import (
 4	"gno.land/p/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/flag"
 5	"gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/hall"
 6)
 7
 8var info = flag.Info{
 9	Slug:       "vintage",
10	Title:      "Counterfeit Vintage",
11	Difficulty: flag.Hard,
12	Category:   "interfaces",
13	Brief: "The appraiser certifies bottles older than 1900, but she only handles bottles from this " +
14		"cellar: every Bottle carries the cellar's seal, an unexported method no other realm can " +
15		"write. The house only pours the 2024. Get a bottle from before 1900 certified in your name.",
16}
17
18var captures = flag.NewLedger()
19
20type challenge struct{}
21
22func (challenge) Info() flag.Info              { return info }
23func (challenge) Captured(player address) bool { return captures.Captured(player) }
24
25// Challenge describes this realm to a hall.
26func Challenge() flag.Challenge { return challenge{} }
27
28func init(cur realm) { hall.Enlist(cross(cur), challenge{}) }