challenge.gno
0.87 Kb · 28 lines
1package flight
2
3import (
4 "gno.land/p/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/flag"
5 "gno.land/r/g15c02s5hhdny9uvr9za3xsyn9sw8p0klptrh6kf/cellar/hall"
6)
7
8var info = flag.Info{
9 Slug: "flight",
10 Title: "The Spilled Flight",
11 Difficulty: flag.Medium,
12 Category: "panic and recover",
13 Brief: "Nine wines on the list. A tasting token buys a flight of up to three glasses, and you hold two " +
14 "tokens. The sommelier is generous about accidents: a spilled glass is never charged. " +
15 "Taste all nine.",
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{}) }