Computer Science Canada

TETRIS in TURING

Author:  Spider-Man [ Wed Jan 23, 2008 6:07 pm ]
Post subject:  TETRIS in TURING

okay another one of my friends (not the one responsible for yoda dodge) made this game
it is rather fun and a little buggy
but it has cool tetris music with it so you cant complain

Author:  Gooie [ Wed Jan 23, 2008 6:40 pm ]
Post subject:  Re: TETRIS in TURING

I don't think Tetris should be 1445 lines. At least it works, and it's fun. Also, why are you submitting a friends game?

Author:  freyman13 [ Wed Jan 23, 2008 6:51 pm ]
Post subject:  Re: TETRIS in TURING

because our friend that made this doesnt have an account and doesnt want to make one so Spidey is posting them for them so others can enjoy their programming
and lets see you do it in less lines

Author:  Gooie [ Wed Jan 23, 2008 6:53 pm ]
Post subject:  Re: TETRIS in TURING

freyman13 @ January 23rd, 6:51 pm wrote:
because our friend that made this doesnt have an account and doesnt want to make one so Spidey is posting them for them so others can enjoy their programming
and lets see you do it in less lines


Oh is that a challenge? I could do it in 200.

Author:  freyman13 [ Wed Jan 23, 2008 7:17 pm ]
Post subject:  Re: TETRIS in TURING

then do it in two hundred lines and submit it and ill say cudos to you and then comment on your............

Edit by Dan: Flaming users is not allowed on this site.

Author:  Spider-Man [ Wed Jan 23, 2008 7:33 pm ]
Post subject:  Re: TETRIS in TURING

look none of us are very experienced at turing hence our noob status
so this is actually some really cool program considering its our first year of programming
its kinda hard to find time to do all this
when people like you just come on to bash the work then really your just bragging about how you have pissed away most of your life

Author:  Sean [ Wed Jan 23, 2008 7:37 pm ]
Post subject:  Re: TETRIS in TURING

Neither of you deserve to be slandered by anyone. Considering we all were beginners at a point. But, I have to agree with Gooie, the code could be done in way less lines, possibly 200 like said above.

Me and Gooie are both in our first year of Turing aswell, we aren't like Clayton or Dan, the super gods, we are just programmers and are giving our feedback.

The program could be condenced into less lines. Tell your friend to revise it.

Author:  Gooie [ Wed Jan 23, 2008 7:46 pm ]
Post subject:  Re: TETRIS in TURING

Well spoken Vilament. It wasn't meant to be accusative, it was meant to be a constructive comment. I received a personal attack, so I retaliated. I'm sorry if I seemed brash. Please keep the trash talk out of the forums. PM if you must.

Author:  Nick [ Wed Jan 23, 2008 7:49 pm ]
Post subject:  RE:TETRIS in TURING

this is getting way off topic

anyways I liked the program although when I looked at the code my eyes bled

it's a great program espacally if you're first year but I think the code could be cleaned up

good job to your friend though

Author:  Clayton [ Wed Jan 23, 2008 8:02 pm ]
Post subject:  RE:TETRIS in TURING

The best place to start looking at ways to improve your game, would be the Turing Walkthrough. Give topics that you (or your friend in this case) aren't entirely sure about, and apply what you've learned to the game to clean it up. Also, this is a last warning, any more flaming/spamming/obnoxious posts will be dealt with appropriately.

Author:  ericfourfour [ Wed Jan 23, 2008 8:18 pm ]
Post subject:  RE:TETRIS in TURING

Really programs should not be judged by the number of lines. Once I made a simple eyeball poking program. I created the tears with a particle engine and randomly generated the stick with a fractal tree. The exact same program could have been done in much less lines. The libraries are what took up the lines.

Pong can be done in under 20 lines, or over a thousand lines. If you make a full-blown geometry library to simplify all of the calculations, it isn't that unlikely.

Author:  StealthArcher [ Wed Jan 23, 2008 10:10 pm ]
Post subject:  Re: TETRIS in TURING

20 line pong? wow i'd like to see that least I ever saw was a friends 55 line pong, pretty basic.

Author:  Clayton [ Wed Jan 23, 2008 10:42 pm ]
Post subject:  RE:TETRIS in TURING

It basically abused this function:

Turing:

fcn sa (var a : int, b : int, c : boolean) : boolean
    if c then
        a := b
    end if
    result false
end sa

Author:  zylum [ Thu Jan 24, 2008 1:01 am ]
Post subject:  Re: TETRIS in TURING

For cool short programs check out this and this. In the first thread you can find a submission by catalyst which is pong in 19 lines.. In the second one i submitted 3d in 16 lines Smile

I think I may just start up another one of these as they're always good fun Wink


: