
-----------------------------------
xSavage
Wed Oct 28, 2015 6:29 pm

Simple Turing Number Game
-----------------------------------
What is it you are trying to achieve?
So, I need help with the overall body of the code. The game I've been trying to make chooses a random number, and the user has to try to guess this number in 10 tries.


What is the problem you are having?
The problem is that the number changes each guess. 


Describe what you have tried to solve this problem
So far I haven't had any success solving this problem.


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)




var num : int
var guess : int
var font1 := Font.New ("Comicsans:14:bold,italic")

Font.Draw ("Welcome to the Number Game!", 200, 300, font1, red)
locate(9,20) color (green)
put "Instructions: The point of the game is to correctly"
locate(10,22)
put "guess the number generated by the computer."
locate(11,22)
put "You have a total of 10 guesses, good luck!"
locate(13,35)
put "Creator: Marko M*****"
locate(25,1)
put "Press any key to begin!"

Input.Pause()
cls

for k : 1 .. 10

randint (num, 1, 1000)

put "Please put in a number"
get guess

if guess>num then
put "Lower."
elsif guess