challenge.gno
0.92 Kb · 28 lines
1package label
2
3import (
4 "gno.land/p/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/flag"
5 "gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/hall"
6)
7
8var info = flag.Info{
9 Slug: "label",
10 Title: "The Forged Label",
11 Difficulty: flag.Easy,
12 Category: "render",
13 Brief: "The cellar keeps a register by the door. Any guest may chalk a note on it, and the cellar master " +
14 "lists the tasters she has sealed. When asked, she reads the whole register aloud and believes every word. " +
15 "Get her to read a seal in your name that she never granted.",
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{}) }