Skip to content

Commit

Permalink
Merge pull request inkle#639 from sputtering/master
Browse files Browse the repository at this point in the history
update for wack_a_mole example
  • Loading branch information
joethephish authored Feb 21, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 60402fb + 0cb65ee commit dacc233
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Documentation/WritingWithInk.md
Original file line number Diff line number Diff line change
@@ -646,8 +646,10 @@ Here's a one-knot version of whack-a-mole. Note we use once-only options, and a
* [{&Blast|Hammer} middle] -> whack_a_mole
* [{&Clobber|Bosh} bottom-left] -> whack_a_mole
* [{&Nail|Thump} bottom-right] -> whack_a_mole
* [] Then you collapse from hunger. The mole has defeated you!
-> END
* ->
Then you collapse from hunger. The mole has defeated you!
-> END


produces the following 'game':

@@ -2249,7 +2251,8 @@ But what if we add a microwave as well? We might want start generalising our fun
* {kettleState == cold} [Turn on kettle]
{boilSomething(kettleState, "kettle")}
* {potState == cold} [Light stove]
{boilSomething(potState, "pot")} * {microwaveState == cold} [Turn on microwave]
{boilSomething(potState, "pot")}
* {microwaveState == cold} [Turn on microwave]
{boilSomething(microwaveState, "microwave")}

or even...

0 comments on commit dacc233

Please sign in to comment.