Skip to content

Commit 45b1871

Browse files
authored
Update reverse.ms
1 parent 8a57638 commit 45b1871

File tree

1 file changed

+8
-8
lines changed
  • 00_Alternate_Languages/73_Reverse/MiniScript

1 file changed

+8
-8
lines changed

00_Alternate_Languages/73_Reverse/MiniScript/reverse.ms

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ printState = function
3232
print;print digits.join(" "); print
3333
end function
3434

35-
print " " * 32 + "REVERSE"
36-
print " " * 15 + "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
35+
print " " * 32 + "Reverse"
36+
print " " * 15 + "Creative Computing Morristown, New Jersey"
3737
print; print; print
3838
print "Reverse -- a game of skill"
3939
print
4040

41-
ans = input("Do you want the rules? ")
41+
ans = input("Do you want the rules? ") + " "
4242
if ans != null and ans[0].lower == "y" then showRules
4343

44-
while 1
44+
while true
4545
turns = 0
4646
digits = range(1, num)
4747
digits.shuffle
4848
print;print "Here we go ... the list is:"
49-
while 1
49+
while true
5050
printState
5151
amt = input("How many shall I reverse? ").val
5252
if amt == null or amt == 0 then break
@@ -64,8 +64,8 @@ while 1
6464
end if
6565
end while
6666
print
67-
ans = input("Try again (YES or NO)? ")
67+
ans = input("Try again (YES or NO)? ") + " "
6868
print
69-
if ans == null or ans[0].lower == "n" then break
69+
if ans == null or ans[0].lower != "y" then break
7070
end while
71-
print "O.K. Hope you had fun!!"
71+
print "O.K. Hope you had fun!!"

0 commit comments

Comments
 (0)