Computer Science Canada Hilo game |
Author: | Doug101 [ Wed Apr 02, 2008 7:14 am ] |
Post subject: | Hilo game |
heres my Hilo game |
Author: | repsoccer16 [ Wed Apr 02, 2008 8:01 am ] |
Post subject: | Re: Hilo game |
pretty good game...could use more specifics on how far away you are from the number. For example warm,hot, cold, etc. |
Author: | repsoccer16 [ Wed Apr 02, 2008 8:02 am ] |
Post subject: | Re: Hilo game |
so try to make a revised version if you have time and repost it and i'll give you more feedback. |
Author: | Doug101 [ Wed Apr 02, 2008 8:06 am ] |
Post subject: | Re: Hilo game |
k ill work on it. it might take a while cause ive got other stuff to do thanks for the feedback repsoccer16. |
Author: | repsoccer16 [ Wed Apr 02, 2008 8:30 am ] |
Post subject: | Re: Hilo game |
your welcome and just msg me when you are done fixing it. |
Author: | Doug101 [ Wed Apr 02, 2008 11:31 am ] |
Post subject: | Re: Hilo game |
it might take a month or so. |
Author: | petree08 [ Wed Apr 02, 2008 1:18 pm ] |
Post subject: | RE:Hilo game |
If it takes a month to make the guess a number game there is something wrong |
Author: | Doug101 [ Wed Apr 02, 2008 5:28 pm ] |
Post subject: | Re: Hilo game |
no it will take a month because i have other stuff to do and im not being graded on this one anymore. |
Author: | Doug101 [ Thu Apr 03, 2008 8:00 am ] |
Post subject: | Re: Hilo game |
if you have been having trouble downloading the game ill post it again as text. |
Author: | Doug101 [ Thu Apr 03, 2008 8:00 am ] |
Post subject: | Re: Hilo game |
/***********************************************************/ /* Title: HiLo game */ /* Date: March 04/08 */ /* Name: Douglas Mick */ /* Description: The computer chooses a random */ /* number and ask you to guess it. */ /* */ /***********************************************************/ %Variables randomize var num : int var num1 : int var answer : string var count : int:=0 var key : string (1) var name:string %Instructions put"Enter your name" get name put"Welcome ",name," to my HiLo game." delay(2000) drawfillbox(0,0,639,399,12) colorback(12) put"HiLo Game" put"" put"Instructions" put"Guess a number in between 1 and 100" put"If your number is too high it will tell you" put"If your number is too low it will tell you" put"" put"Press any key to continue" getch(key) cls %Program drawfillbox(0,0,639,399,46) colorback(46) loop randint (num, 1, 100) loop put "Pick a number between 1 and 100" get num1 count:=count+1 if num1 < 1 or num1 > 100 then cls put "The number you have entered is out of range." elsif num1 > num then cls put "Im sorry ",name," that number is too high." elsif num1 < num then cls put "Im sorry ",name,"that number is too low." end if exit when num1 = num end loop cls put "congratulations ",name," you have guessed correctly." put "you guessed ",count," numbers." put name," would you like to try again?" put "(y/n)" get answer count:=count-count cls exit when answer = "n" or answer ="N" end loop |
Author: | Michael516 [ Thu Apr 03, 2008 8:15 am ] |
Post subject: | Re: Hilo game |
i also have one |
Author: | Doug101 [ Thu Apr 03, 2008 8:32 am ] |
Post subject: | Re: Hilo game |
micheal its my hilo game not yours but ok u can post |
Author: | 2qwerty [ Fri Apr 04, 2008 7:22 am ] |
Post subject: | RE:Hilo game |
hey |
Author: | 2qwerty [ Fri Apr 04, 2008 7:22 am ] |
Post subject: | RE:Hilo game |
hello |
Author: | 2qwerty [ Fri Apr 04, 2008 7:23 am ] |
Post subject: | Re: Hilo game |
spam |
Author: | 2qwerty [ Fri Apr 04, 2008 7:23 am ] |
Post subject: | Re: Hilo game |
spam |
Author: | andrew. [ Sun Apr 06, 2008 9:27 am ] |
Post subject: | Re: Hilo game |
Quick suggestion for you Doug. At the end of your file, you have "count := count - count". Why not just write "count := 0"? But other than that, it's great. |