diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-14 03:23:37 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-14 03:23:37 -0700 |
| commit | 39a92bd1ab75588a2951154208ed7ccd1b22865e (patch) | |
| tree | 13bdd98f41b09863a27b61539f70f4bc536f0a58 | |
| parent | 83463f11c530cb8be311cd418ef7b7f842b21890 (diff) | |
Tightened up graphics on level 4
| -rw-r--r-- | examples/sample_game.nom | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/sample_game.nom b/examples/sample_game.nom index 52137d2..a316b77 100644 --- a/examples/sample_game.nom +++ b/examples/sample_game.nom @@ -1,4 +1,5 @@ run file "core.nom" +# A basic key-value store that's only accessible through these functions: lua block ".." |do -- Use a closure to hide this behind the accessor rules | local relations = setmetatable({}, {__index=function(self,key) @@ -154,8 +155,7 @@ propose: say ".." |Vote cast. \%candidate\ now has \100 * %vote-percent\% of the votes. if (%vote-percent > 0.5): - say ".." - |The winner of the election is: \%candidate\ + say ".."|The winner of the election is: \%candidate\ close the election allow ["open election %", "close the election", "vote for %"] to use ["% % = %"] @@ -167,8 +167,7 @@ propose: if ((you) == "Anonymous"): make "bill" do %action ..else: - say ".." - |Who do you think you are, \you\? + say ".."|Who do you think you are, \you\? allow ["as bill %"] to use ["make % %"] approve as bill: join @@ -178,8 +177,7 @@ propose: if ((you) == "Anonymous"): make "dave" do %action ..else: - say ".." - |Who do you think you are, \you\? + say ".."|Who do you think you are, \you\? allow ["as dave %"] to use ["make % %"] approve as bill: approve |
