7 lines
191 B
Text
7 lines
191 B
Text
require "io2"
|
|
|
|
local n = math.random(1, 10) -- computer number from 1 to 10 inclusive
|
|
repeat
|
|
local guess = io.readInt("Your guess 1-10 : ", 1, 10)
|
|
until n == guess
|
|
print("Well guessed!")
|