
-----------------------------------
xSavage
Thu Oct 29, 2015 3:50 pm

Simple Turing Number Game #2
-----------------------------------
What is it you are trying to achieve?
Alright so this is my second question on the same topic, my last question has been answered and now i have a new one. For those of you who don't know, my program is supposed to make a random number and then the user has 10 guesses to try and find the number.


What is the problem you are having?
OK, what I've been trying to do is display the comments in a row going from top to bottom in the middle of the screen. What I mean by comments is when the user inputs a number and the computer outputs "Higher.", "Lower." and "Invalid number". 

Describe what you have tried to solve this problem
So far what i cant do is get the comments to go lower and lower. What happens is they stay in the same spot and start overlapping each other. I know how to locate them in a certain spot but not how to get them to lower.


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")
var i : int := 0
var continuegame: string


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 Medic"
locate(25,1)
put "Press any key to begin!"

Input.Pause()
cls

loop

randint (num, 1, 1000)

loop

put "Please put in a number"
get guess

i := i+1

if guess>1000 or guessnum then 
put "Lower."
elsif guess