Try:
disp_hint = "hint"
write("Enter a number!")
number = tonumber(read())
write("Enter a hint for the number!")
hint = read()
term.clear()
term.serCursorPos(1,1)
repeat
print("Guess the number, or type hint for a hint!")
guess = tonumber(read())
if guess == number then
print("You're Right!")
elseif guess == disp_hint then
print("..hint..")
else
print("Nope!")
end
until guess == number
exit()
I remove the "end" at line 14 and add "tonumber()"this is optional just makes it a real Integer:D.