Skip to content

Instantly share code, notes, and snippets.

@Flurrywinde
Created April 1, 2022 22:06
Show Gist options
  • Save Flurrywinde/5e9e03613aaa53f4dd862d184014d70e to your computer and use it in GitHub Desktop.
Save Flurrywinde/5e9e03613aaa53f4dd862d184014d70e to your computer and use it in GitHub Desktop.
GIST created by python code
digraph {
0 [label="START" shape=doublecircle fillcolor=chartreuse style=filled tooltip=""]
0 -> 33
33 [label="..." shape=box fillcolor=none style=filled tooltip="1: comment Copyright 2010 by Dan Fabulich. comment comment Dan Fabulich licenses this file to you under...
18: SET leadership 10
19: SET strength 10
21: What do you prefer?
? (line 22)
"]
33 -> 8 [label="Leadership"]
8 [label="SET leadership +10" shape=hexagon fillcolor=powderblue style=filled tooltip=""]
8 -> 12
33 -> 32 [label="Strength"]
32 [label="..." shape=box fillcolor=none style=filled tooltip="26: Strength
27: SET strength +10
action: What will you do today?
? (line 31)
"]
32 -> 16 [label="Run for class president"]
16 [label="IF leadership > 15" shape=diamond fillcolor=cornsilk style=filled tooltip=""]
16 -> 17 [label="Y"]
17 [label="T[21]" shape=box fillcolor=none style=filled tooltip="You win the election."]
17 -> 1
16 -> 19 [label="N"]
19 [label="T[22]" shape=box fillcolor=none style=filled tooltip="You lose the election."]
19 -> 1
32 -> 22 [label="Lift weights"]
22 [label="IF strength > 15" shape=diamond fillcolor=cornsilk style=filled tooltip=""]
22 -> 23 [label="Y"]
23 [label="T[21]" shape=box fillcolor=none style=filled tooltip="You lift the weights."]
23 -> 1
22 -> 31 [label="N"]
31 [label="..." shape=box fillcolor=none style=filled tooltip="N
42: You drop the weights and hurt yourself badly. You never recover.
END (Other links: 35 37 41)
"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment