challenge.gno
0.91 Kb · 28 lines
1package livery
2
3import (
4 "gno.land/p/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/flag"
5 "gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/hall"
6)
7
8var info = flag.Info{
9 Slug: "livery",
10 Title: "Borrowed Livery",
11 Difficulty: flag.Hard,
12 Category: "realm context",
13 Brief: "Only the steward may dress a guest in the house livery, and the wardrobe checks that the " +
14 "steward is the realm acting before it hands one over. The steward is a busy realm with a soft " +
15 "spot for toasts. Wear the livery and enter the private cellar.",
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{}) }