File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
00_Alternate_Languages/73_Reverse/MiniScript Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,21 @@ printState = function
3232 print;print digits.join(" " ); print
3333end 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 "
3737print; print; print
3838print " Reverse -- a game of skill"
3939print
4040
41- ans = input(" Do you want the rules? " )
41+ ans = input(" Do you want the rules? " ) + " "
4242if 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
7070end while
71- print " O.K. Hope you had fun!!"
71+ print " O.K. Hope you had fun!!"
You can’t perform that action at this time.
0 commit comments