-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-example.yml
More file actions
193 lines (176 loc) · 6.38 KB
/
config-example.yml
File metadata and controls
193 lines (176 loc) · 6.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# choices — Example decision tree configuration
#
# This file demonstrates the three choice syntax forms:
# 1. Compact map: { Label: target-node }
# 2. Compact list: - Label: target-node (with extra attributes)
# 3. Full form: - answer: "Label" goto: target-node
#
# Usage: bb choices.clj config-example.yml index.html
locale: en
framework: pico
header:
title: "Should Snow White kiss the prince?"
subtitle: "A critical decision-tree analysis."
footer:
text: "Brought to you by the Enchanted Forest Advisory Board."
contact: "advice@enchanted-forest.example"
mail-to: "advice@enchanted-forest.example"
display-summary: true
display-score: true
display-score-details: false
score-variables:
trust:
display: "Trust level"
value: 0
as-percent: true
max: 6
conditional-score-output:
high-trust:
status: positive
message: "Trust level: %trust% — Looks safe!"
condition-1:
trust: 5
medium-trust:
status: neutral
message: "Trust level: %trust% — Proceed with caution."
condition-1:
trust: 3
low-trust:
status: caution
message: "Trust level: %trust% — Maybe wait a bit."
condition-1:
trust: 1
no-trust:
status: negative
message: "Trust level: %trust% — Do not kiss strangers."
condition-1:
trust: 0
tree:
# ── Welcome ──────────────────────────────────────────────
- node: welcome
text: "You've been asleep for a while. A prince just showed up."
home-page: true
no-summary: true
help: "This guide will help you make the most important decision of your fairy tale career."
# Compact map form: just label → target
choices:
"Let's figure this out": awake-check
# ── Are you actually awake? ──────────────────────────────
- node: awake-check
text: "First things first — are you actually awake?"
start-page: true
progress: "[1 5]"
help: "This matters more than you'd think."
choices:
- "Yes, wide awake": identity-check
status: positive
summary: "You are fully conscious."
score:
trust:
value: 1
- "Still groggy": identity-check
status: caution
summary: "You are not fully awake yet."
- "No, still dreaming": dreaming
status: neutral
summary: "You might be dreaming all of this."
# ── Dreaming branch ──────────────────────────────────────
- node: dreaming
text: "If you're dreaming, nothing matters. Want to wake up first?"
progress: "[2 5]"
choices:
- "Try to wake up": awake-check
status: positive
- "Stay in the dream": end-dream
status: neutral
# ── Identity check ──────────────────────────────────────
- node: identity-check
text: "Do you know who this prince is?"
progress: "[2 5]"
help: "Stranger danger applies even in fairy tales."
choices:
- "Yes, we've met before": consent-check
status: positive
summary: "You recognize the prince."
score:
trust:
value: 2
- "He looks familiar": references-check
status: neutral
summary: "The prince looks vaguely familiar."
score:
trust:
value: 1
# Full form: useful when the answer contains special characters
- answer: "No idea — he just walked in"
goto: references-check
status: caution
summary: "You have no idea who this person is."
# ── References ───────────────────────────────────────────
- node: references-check
text: "Did anyone vouch for this prince?"
progress: "[3 5]"
help: "The dwarfs have opinions. So do the woodland creatures."
choices:
- "The seven dwarfs approve": consent-check
status: positive
summary: "The dwarfs gave their approval."
score:
trust:
value: 2
- "The forest animals seem fine with him": consent-check
status: neutral
summary: "The animals are not alarmed."
score:
trust:
value: 1
- "Nobody, he just showed up": consent-check
status: negative
summary: "No references whatsoever."
# ── Consent ──────────────────────────────────────────────
- node: consent-check
text: "Most importantly — do YOU actually want to kiss him?"
progress: "[4 5]"
choices:
- "Yes!": motivation-check
status: positive
summary: "You want to kiss the prince."
score:
trust:
value: 1
- "Not sure": end-wait
status: caution
summary: "You're hesitant."
- "Absolutely not": end-no
status: negative
summary: "You do not want to kiss the prince."
# ── Motivation ───────────────────────────────────────────
- node: motivation-check
text: "Why do you want to kiss him?"
progress: "[5 5]"
choices:
- "True love, obviously": end-kiss
status: positive
summary: "Motivated by true love."
score:
trust:
value: 1
- "To break the curse": end-kiss
status: neutral
summary: "Motivated by curse-breaking pragmatism."
- "Peer pressure from the dwarfs": end-wait
status: caution
summary: "Motivated by peer pressure."
# ── Endings ──────────────────────────────────────────────
- node: end-kiss
text: "Go ahead and kiss the prince. Happily ever after awaits (probably)."
done: true
- node: end-wait
text: "Maybe wait a bit. Get to know each other first. There's no rush."
done: true
- node: end-no
text: "Don't kiss him. You're an independent princess who doesn't need a prince."
done: true
- node: end-dream
text: "You stayed in the dream. None of this was real. Or was it?"
done: true