Computer Science Canada

stupid game to provide minutes of fun :D

Author:  Prince [ Fri Mar 28, 2003 11:45 am ]
Post subject:  stupid game to provide minutes of fun :D

lol, i jus made this up (dont ask y) and decided to post it

code:

var secret_num : int
var count : int := 1
var guess : int
put "Welcome to the guessing game"
put ""
put "The computer has picked a number between 1 and 100"
put "See if u can guess what it is"
put ""
randomize
randint (secret_num, 1, 100)
loop
    put "Please enter your guess -> " ..
    get guess
    if guess = secret_num then
        put "You're right!"
        if count = 1 then
            put "You got it in ", count, " try!!"
        elsif count > 1 then
            put "It took you ", count, " tries to get this"
        end if
        put "The number was ", secret_num
    end if
    if guess > secret_num then
        put "You're guess is too high!"
    elsif guess < secret_num then
        put "You're guess is too low!"
    end if
    count := count + 1
    exit when guess = secret_num
end loop


it'll either frustrate the hell outta u or make u happy... not for too long tho

MOD EDIT: tanks for sharing.....5 bits -Dan

Author:  Blade [ Fri Mar 28, 2003 11:49 am ]
Post subject: 

lol... thats pretty cool, i had to make one for school, but i had to modify it so that if i'm 20 off, the comps says you're way the hell to low... but if its 20 or less off, it says your a lil too low, and the same for high... lol

Author:  JayLo [ Sat Mar 29, 2003 8:59 pm ]
Post subject: 

...
did you find this out of a textbook? because I saw it last semsester in class...

Author:  Tallguy [ Thu May 17, 2007 1:04 pm ]
Post subject:  Re: stupid game to provide minutes of fun :D

so addictive

Author:  rollerdude [ Thu May 17, 2007 1:08 pm ]
Post subject:  Re: stupid game to provide minutes of fun :D

i remember this game, we had to make one in grade ten compsci class

Author:  Clayton [ Thu May 17, 2007 3:15 pm ]
Post subject:  RE:stupid game to provide minutes of fun :D

Holy necropost Batman! This topic is almost 4 years old! Tallguy, you need to be careful of dates here. rollerdude, you should know enough to watch for dates.

Author:  hotpoop [ Fri May 18, 2007 9:46 am ]
Post subject:  Re: stupid game to provide minutes of fun :D

well.. i would, but since tallguy posted yesterday, it looked new

sorry... Crying or Very sad

Author:  hotpoop [ Fri May 18, 2007 9:47 am ]
Post subject:  Re: stupid game to provide minutes of fun :D

sorry... random posts.. clayton, you can delete this and my previous one.. your a mod..

Author:  rollerdude [ Fri May 18, 2007 9:49 am ]
Post subject:  Re: stupid game to provide minutes of fun :D

hotpoop... i dont know you, but you dont need to pretend ur me, i was going to post something like that....

clayton, you can delete this as well...

Author:  ashiphire [ Wed May 23, 2007 7:18 am ]
Post subject:  RE:stupid game to provide minutes of fun :D

this is way to simple
try to make it fancy

Author:  Clayton [ Wed May 23, 2007 7:19 am ]
Post subject:  RE:stupid game to provide minutes of fun :D

Dude.... the original post was from 2003. The OP isn't even around anymore. I thought I locked this Confused Ah well.

This thread is locked


: