Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [source] The Typing Tetris Excercise thingy
Index -> Programming, Turing -> Turing Submissions
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Paul




PostPosted: Sun Mar 14, 2004 12:31 pm   Post subject: [source] The Typing Tetris Excercise thingy

Back in Business class, we had to learn how to type fast. The "typing tetris" game is one of the things we used. It speeds up as you finish words, and if you miss one , the speed resets. I didn't feel like making it fancy, I suppose when I do my final project, "paul world", I would make it more fancy. I just thought up of it this morning at 10 when I woke up. But here is the basic program, try to beat my score of 1850 Very Happy Enjoy


typingtetris.t
 Description:
Ladies and Gentelmen, crack your fingers....

Download
 Filename:  typingtetris.t
 Filesize:  2.55 KB
 Downloaded:  297 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
recneps




PostPosted: Sun Mar 14, 2004 12:45 pm   Post subject: (No subject)

Haha tied you, 1850 Very Happy
Paul




PostPosted: Sun Mar 14, 2004 12:49 pm   Post subject: (No subject)

Hehe, i thought my computer is slow, so I gave you guys an easier version, where the speed increases by 3 instead of 5 every time.
guruguru




PostPosted: Sun Mar 14, 2004 12:56 pm   Post subject: (No subject)

Very Happy 3150 Very Happy
recneps




PostPosted: Sun Mar 14, 2004 1:00 pm   Post subject: (No subject)

*1850* , WITHOUT editing scoring in code Razz lol and im talking FIRST TRY!

And maybe you could create a text files with like 100 words, and then have it load em all into an array and randomize, because its always the same words over and over again Wink
guruguru




PostPosted: Sun Mar 14, 2004 3:34 pm   Post subject: (No subject)

Quote:

*1850* , WITHOUT editing scoring in code lol and im talking FIRST TRY!


Are you implying something Confused ? lol...
*3150* , WITHOUT editing scoring in code lol and IM talking FIRST TRY!
Paul




PostPosted: Sun Mar 14, 2004 5:28 pm   Post subject: (No subject)

now now some ppl's computers are slower that might explain the fact of the scores.
the_short1




PostPosted: Sun Mar 14, 2004 6:41 pm   Post subject: (No subject)

nice program.,... i got 1300 i sux... but ya see i had a problem with ukelele and alfalfa... other t hen that... nice... polish it up then u shoulkd put it on ur site..
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Sun Mar 14, 2004 7:48 pm   Post subject: (No subject)

score 8) I got a big hug from Paul. I'm movin' on up the ladder now!

nice program Paul. I always love the aesthetic appeal you have in your programs. It looks wonderful and runs smoothly and flawlessy. +10 BITS
Paul




PostPosted: Sun Mar 14, 2004 7:55 pm   Post subject: (No subject)

score! I just got a compliment from Cervantes, I wasn't trying particularily to make it look good though, Im going to make it way better, once I make it in to one huge program for my "paul land" like
http://www.jumpland.com
except you get to walk around the "World of Paul" and enter houses of programs.
Cervantes




PostPosted: Sun Mar 14, 2004 7:59 pm   Post subject: (No subject)

That's an awesome idea for a FP paul. can't wait to see it! I hope it has cool graphics for the walking around bit such as Breath of Fire or Legend of Zelda.
the_short1




PostPosted: Sun Mar 14, 2004 8:40 pm   Post subject: (No subject)

wow... taht sounds like a WICKED idea... only problem i can forsee is if you use the same variable twice.. you will have to rename the vairables..

as an FP it sounds GREAT
Tony




PostPosted: Sun Mar 14, 2004 11:04 pm   Post subject: (No subject)

the_short1 wrote:
only problem i can forsee is if you use the same variable twice..


that would not be a problem if you keep all the variables on the procedural level
code:

var x:int := 5

proc a()
var x:int := 10
put x
end a

a
put x
a
put x


as you can see global variable x and variable x inside the procedure are independant of each other
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
jonos




PostPosted: Sun Mar 14, 2004 11:34 pm   Post subject: (No subject)

noooooo.. i don't want a hug Smile. haha, nice program, nice practice for typing, i hate ukelele though, i can't speell; tthat one fast.
the_short1




PostPosted: Mon Mar 15, 2004 12:09 pm   Post subject: (No subject)

ahh... yea... a variable's 'scope' changes if u have it inside a for loop or a proc... almost forgot about that... thx...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 17 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: