Skip to content

Commit 122eea9

Browse files
added crtl+c exit
1 parent 5e9b2ac commit 122eea9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/game.st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ func game do
166166
"Gold picked up: " + coins types :str + outln
167167
true while
168168
inch expand drop dup
169+
dup 3 = if 0 exit end // exit on Crtl+C
169170
13 = swap 32 = | !
170171
end
171172
return

0 commit comments

Comments
 (0)