Posted 27 September 2016 - 12:00 AM
Hey guys ! I have problem in my program ! Can you help me !
Ty !
do
numb = math.random(1,100)
tries = 1
triesmax = 7
guess = 0
end
do
term.clear()
textutils.slowPrint(Trouve le chiffre par Herty75)
print(Entrée pour continuer)
io.read()
print(Tu as 6 chance pour trouver le bon chiffre!)
end
while (tries =< triesmax) do
print(devine un chiffre entre. [1 - 100, nombre entier])
guess = io.read()
guess = tonumber(guess)
if guess == numb then
print(Winner: Joueur)
tries = triesmax
elseif guess > numb then
print(Ton chiffre est trop haut!)
else
print(Ton chiffre est trop bas!)
end
end
tries = tries + 1
end
do
term.clear()
textutils.slowPrint(Tu peux relancer!)
end
Ty !