Computer Science Canada

Your first cool program...

Author:  Mazer [ Mon Jan 19, 2004 8:26 pm ]
Post subject:  Your first cool program...

Can you remember what the first program you made was? Tell us about it! But don't post if the first program you wrote happens to be the last program you wrote, this is strictly for nostalgic purposes. Razz
For me, I'd have to go with a little something called "missile.t"
Unfortunately I don't have it anymore, and it was just a recangle labeled "missile" that flew into a blue rectangle and exploded, but seeing as it was the first thing I ever made before my compsci "teacher" even started showing us how to use put I think it was pretty cool.
A year later, it was followed up by "heatseeker.t" which was just as cool, if not cooler (it was a rocket that flew in circles around a smoking smiley getting closer and closer until finally it hit the face and blew up)

So what was (were) your first cool program(s)?

Author:  PaddyLong [ Mon Jan 19, 2004 8:49 pm ]
Post subject: 

hmm my very first program was a slot machine I wrote in turing when I was in I think grade 8

the next thing that I was really proud of was a tank wars game I wrote in grade 10

Author:  ArchAngel16 [ Mon Jan 19, 2004 9:07 pm ]
Post subject: 

it wasnt called Tankz was it??? Cause if it was hail to the chief and you would be the CHief. My first program was a Trivia game which had scenes of a battle between Imperial and Rebel forces. One side or the other winning the skirmish depending on your answer.

Author:  AsianSensation [ Mon Jan 19, 2004 9:33 pm ]
Post subject: 

Rush Hour Chinese Edition

http://www.compsci.ca/v2/viewtopic.php?p=14572

This was suppose to be our animation project, but I did this. Can't blame a guy if he desperately wanted a game that can move along with the Kung Fu Fighting song.

Author:  Recoil [ Mon Jan 19, 2004 9:44 pm ]
Post subject: 

still have it somewhere around here...


*5 minutes later*

Surprised i don't! aw crap! i was so proud of it!



anyways.. it was all text based (this was like in the first week we started learning turing, so... we had just started learning variables)... when it started up, it would say spacetron in green, and a period would go back and forth as if it were loading something (by using a counted loop and locate (count+x,y) and put " . ")


then it would go to the main screen... it would randomize a value of x and y, and you would take a guess as to where the "cloaked ship" was. it would draw a target on that location (locate (xvalued-1,y) put ({+}) " and then fire a missle from a ship on the left side of the screen (again, for loops and put " => ")... if you missed, it gave you a "getting warmer/colder" type response, and visual feedback (iirc, {X} for hit, {O} for miss, and something else for a near-hit)

you got a few tries till the cloaked ship uncloaked and fired on you.... ended up very fun and the whole thing was very nethack-esque, ( http://nethack.org ) and i really loved how polished it looked... so 1980's arcadey..

Author:  shorthair [ Mon Jan 19, 2004 9:48 pm ]
Post subject: 

my first program was definatly a program that said , ARE YOU GAY and had 2 buttons and when you went to NO it chnged t oyes , it was one of the coolest things i ever made and the only way to beat it was to click in hte box thats always 5 rows away from th emouse so you can never get to it. i tried for many hours and i even made an if statement just incase someone everdid get it.

Author:  Maverick [ Mon Jan 19, 2004 11:27 pm ]
Post subject: 

Mine was a happy face smoking a dubee. With the smoke animated and his eys blinking.

Author:  Skizzarz [ Tue Jan 20, 2004 9:03 pm ]
Post subject: 

shorthair i made the EXACT same program as you as my first program it said are you stupid? yes, no, when you clicked on no it would change to yes and say "I thought so!", did u make it in VB like me?

Author:  Skizzarz [ Tue Jan 20, 2004 9:04 pm ]
Post subject: 

if someone tells me how to attach files then i'll attach it cuz i have it.

Author:  Andy [ Tue Jan 20, 2004 9:05 pm ]
Post subject: 

when u post, under the lil text field, u see options and a large button that says add an attatchment beside it

Author:  shorthair [ Tue Jan 20, 2004 9:08 pm ]
Post subject: 

It was really funny , i let my teacher test it ( its all good cause im on hte programming team so he dosent ever yell at us for stupid things )

Author:  Catalyst [ Tue Jan 20, 2004 9:17 pm ]
Post subject: 

a small ball controlled by the keyboard (didnt know of getch so u had to hit enter after each movement Laughing )

Author:  Skizzarz [ Tue Jan 20, 2004 9:37 pm ]
Post subject: 

here is the program, shorthair is it just like urs?

Author:  Skizzarz [ Tue Jan 20, 2004 9:38 pm ]
Post subject: 

oops sorry here

Author:  Skizzarz [ Tue Jan 20, 2004 9:39 pm ]
Post subject: 

wtf, i said ADD ATTACHMENT, hmmmm, sounds like the work of the compsci spector!

Author:  rizzix [ Tue Jan 20, 2004 9:40 pm ]
Post subject: 

i dun think u can attach in the GD

Author:  Skizzarz [ Tue Jan 20, 2004 9:46 pm ]
Post subject: 

GD eh? um, wuts GD? Confused

Author:  McKenzie [ Tue Jan 20, 2004 10:00 pm ]
Post subject: 

Ahhh my first program ... I remember it well.
code:
print "Hello World"

...those were the days

Author:  Amailer [ Tue Jan 20, 2004 10:06 pm ]
Post subject: 

... made no programs Crying or Very sad
but i did make scripts Very Happy but i don't like it.. amailer Sad dumbest thing ever. LOL

Author:  Skizzarz [ Tue Jan 20, 2004 10:08 pm ]
Post subject: 

speaking of hello world, (as this is almost everyones first program in a new language) i found this site one day when i was bored and typed hello into google lol, wut a coincidence, http://www2.latech.edu/~acm/HelloWorld.shtml

p.s.- lmao theres a language called brainfuck, how funny is that?

Author:  the_short1 [ Tue Jan 20, 2004 10:12 pm ]
Post subject: 

Brain eh!??.. anyway... yea mine was Box with maple leaf, drew a box at your cursor, and a maple leaf inside it... i worked a bit with Basic before i whent into turing class so instead of listening to teacher... i went into help and found Draw. Fill Stuf.... verry cool.. talk of class for a day... got em all hyped..those were the days.... now they dont even care when someone makes a Pac Man!!!

Author:  bugzpodder [ Tue Jan 20, 2004 10:32 pm ]
Post subject: 

Skizzarz wrote:

p.s.- lmao theres a language called brain****, how funny is that?

haha, in CCC stage 2 last year i had to right an interpreter for brain***, which ****ed my brain up and costed me a whole good deal.

my first program is in LOGO i believe, the only thing i remember making (~12 years ago) was a go-moku (5 in a line). then i tried VB, and made a shitty game where you have to click on the happy face when it smiles (like hitting the mouse when it comes out of the cave). in Turing, i made a Naval command game with some kool animations, over 2000 lines (mainly cuz of crappy programming practice -- you can probably cut everything down by three quarters). and in C++, hmm... no games, mainly implmentation of standard algorithms (CCC stuff basically)... although i did port my 4x4x4 Tic tac toe (yep still undefeated) to VC .net awhile ago, with graphics from VB .net

Author:  bugzpodder [ Tue Jan 20, 2004 10:35 pm ]
Post subject: 

right here: http://contest-cemc.uwaterloo.ca/ccc/2003/1_bf.pdf

Author:  Catalyst [ Tue Jan 20, 2004 11:24 pm ]
Post subject: 

whats so tough about that?

Author:  bugzpodder [ Wed Jan 21, 2004 7:19 am ]
Post subject: 

a bug in my program due to unexpected C++ behaviours. and yah, given the size of hte data ,your program (esp in turing) would get a time out because you search for the ] every time. you need to create an array that explicitly store the location of the matching [] to avoid time outs which i dont think you did.

Author:  Catalyst [ Wed Jan 21, 2004 3:10 pm ]
Post subject: 

hmm i see what u mean
what sorta unexpected behaviour was it?


: