mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-12 07:40:50 -08:00
Improved error handling in pizza.ms.
This commit is contained in:
@@ -78,7 +78,7 @@ while true
|
||||
while true
|
||||
inp = input(" Driver to " + name + ": Where does " + buyer + " live? ")
|
||||
inp = inp.replace(",", " ").replace(" ", " ")
|
||||
inp = inp.split + [0,0]
|
||||
inp = inp.split + ["0","0"]
|
||||
guess = [inp[0].val, inp[1].val]
|
||||
if 1 <= guess[0] <= 4 and 1 <= guess[1] <= 4 then break
|
||||
end while
|
||||
|
||||
Reference in New Issue
Block a user