BoutCheetah

Other => Spam => Topic started by: Thornz on November 09, 2013, 06:34:07 PM

Title: My mini-project for my programming class
Post by: Thornz on November 09, 2013, 06:34:07 PM
So I'm taking a college programming intro course, and I'm having a lot of fun with it.  Just built my first keyboard-controlled "game" (it's Pong, so that hardly counts as a game, but whatevs, lolz)!

It may not seem like a very cool project, but it took me about 4-5 hours and I had a lot of fun with it (although I seriously feel like I made the code a lot more complicated than need-be).  It really made me appreciate how much freaking work must go into coding something like BC O.o

Anyways, here's my code. All you have to do is press the start triangle in the upper left.

http://www.codeskulptor.org/#user23_GvT7ZlbTKW_5.py (http://www.codeskulptor.org/#user23_GvT7ZlbTKW_5.py)

ps: see if you can find the changes I made to the classic game/controls to make it a bit more.....interesting  ;D ;D ;D

Also: DON'T USE INTERNET EXPLORER. Soz folks, for some reason it messes it up. Try Firefox, Chrome, or Safari...
Title: Re: My mini-project for my programming class
Post by: Cooky on November 09, 2013, 06:35:14 PM
uh oh i think somethings wrong

(http://puu.sh/5dwPx.png)
Title: Re: My mini-project for my programming class
Post by: -Speedy- on November 09, 2013, 06:36:39 PM
That's pretty cool nice job.
Title: Re: My mini-project for my programming class
Post by: Thornz on November 09, 2013, 06:37:39 PM
Quote from: Cooky on November 09, 2013, 06:35:14 PM
uh oh i think somethings wrong

(http://puu.sh/5dwPx.png)

if you're using IE that screws up this program...
Title: Re: My mini-project for my programming class
Post by: Allie on November 09, 2013, 06:38:20 PM
For reference, our event that we worked on for 2 days took a good 30ish hours of work between the two of us.
That small event that barely looked like a few hours of work went in.
Title: Re: My mini-project for my programming class
Post by: JustRK on November 09, 2013, 06:39:42 PM
well done sir  :P
Title: Re: My mini-project for my programming class
Post by: Thornz on November 09, 2013, 06:40:02 PM
Quote from: Allie on November 09, 2013, 06:38:20 PM
For reference, our event that we worked on for 2 days took a good 30ish hours of work between the two of us.
That small event that barely looked like a few hours of work went in.

Yeah, I figured it must be pretty tedious :P

And @cooky make sure your pop-up blocker doesn't block the game from opening, too...
Title: Re: My mini-project for my programming class
Post by: Cooky on November 09, 2013, 06:42:37 PM
damn internet explorer  :(
Title: Re: My mini-project for my programming class
Post by: jeroen on November 09, 2013, 06:43:17 PM
Nice :P
I made similair programs while at school on my calculator when I had nothing to do :).
Title: Re: My mini-project for my programming class
Post by: Thornz on November 09, 2013, 06:44:27 PM
Let me know if you find the changes I made to the original game (This isn't the version I submitted for grading >:D)
Title: Re: My mini-project for my programming class
Post by: Thornz on November 09, 2013, 07:03:08 PM
Since nobody prolly wants to go through my code to see what I added, I'll give you a hint.  

Is it possible to cheat at Pong? Yes...yes it is 8)
Title: Re: My mini-project for my programming class
Post by: Cooky on November 09, 2013, 07:06:22 PM
fkin internet explorer   >:( >:( >:( >:(
Title: Re: My mini-project for my programming class
Post by: Madprox on November 09, 2013, 07:27:06 PM
Made one of these as well in class.
Well done.
Title: Re: My mini-project for my programming class
Post by: ghostkid17 on November 09, 2013, 07:34:56 PM
Cool, good job
Title: Re: My mini-project for my programming class
Post by: mikenny on November 09, 2013, 07:35:45 PM
nicely done
ikr coding takes alot of work
Title: Re: My mini-project for my programming class
Post by: Selene on November 09, 2013, 07:36:39 PM
Looks confusing as ****. When I was watching Kenny code I had no ****ing idea what was going on.
Title: Re: My mini-project for my programming class
Post by: Madprox on November 09, 2013, 07:39:58 PM
Quote from: Selene on November 09, 2013, 07:36:39 PM
Looks confusing as ****. When I was watching Kenny code I had no ****ing idea what was going on.
If you know what to do, and what you are doing, and what you need to do, it's pretty simple.
You need to understand everything, then have an idea in your head, and just follow as you go
Title: Re: My mini-project for my programming class
Post by: Selene on November 09, 2013, 07:40:31 PM
Would be pretty cool to learn.
Title: Re: My mini-project for my programming class
Post by: ultranoob123 on November 09, 2013, 07:41:15 PM
Quote from: Selene on November 09, 2013, 07:40:31 PM
Would be pretty cool to learn.
Not so much as you'd think
Title: Re: My mini-project for my programming class
Post by: Madprox on November 09, 2013, 07:41:40 PM
Quote from: Selene on November 09, 2013, 07:40:31 PM
Would be pretty cool to learn.
I found it amazing, what i could make as an end-result, from just words and numbers.
Title: Re: My mini-project for my programming class
Post by: Thornz on November 09, 2013, 08:00:54 PM
Thanks guys!

And since nobody has mentioned it yet, see what happens when you press z, x, e, or d.  I coded cheat keys into player one's control scheme. lolol
Title: Re: My mini-project for my programming class
Post by: 123bomb123 on November 09, 2013, 08:02:22 PM
Quote from: Princess_Cutie on November 09, 2013, 07:40:31 PM
Would be pretty cool to learn.
I agree, it would be fantastic.

I'm going to play pong
Title: Re: My mini-project for my programming class
Post by: Cooky on November 09, 2013, 08:52:32 PM
^ lol princess cutie  :-*
Title: Re: My mini-project for my programming class
Post by: qolderman on November 09, 2013, 10:50:59 PM
Quote from: JustRK on November 09, 2013, 06:39:42 PM
well done sir  :P
Title: Re: My mini-project for my programming class
Post by: Santa on November 10, 2013, 08:47:29 AM
Your professor/teacher didn't catch you for plagiarism?

https://bitbucket.org/salmanmanekia/python/src/dfb37ae3e75ed3b722a32af324f7f8a5320da63f/Pong_game.py?at=master
Title: Re: My mini-project for my programming class
Post by: Thornz on November 10, 2013, 08:59:04 AM
Quote from: Santa on November 10, 2013, 08:47:29 AM
Your professor/teacher didn't catch you for plagiarism?

https://bitbucket.org/salmanmanekia/python/src/dfb37ae3e75ed3b722a32af324f7f8a5320da63f/Pong_game.py?at=master
I didn't

It's an online class of about 10,000. And They start you out with a template with most of the global varibales, like ball radius, and names for all the functions. I had to suplly all the actual code though, from scratch. And with 10k ppl, there are only so many different ways to write a 200 line code. Lol
Title: Re: My mini-project for my programming class
Post by: Santa on November 10, 2013, 09:06:33 AM
Quote from: Thornz on November 10, 2013, 08:59:04 AM
Quote from: Santa on November 10, 2013, 08:47:29 AM
Your professor/teacher didn't catch you for plagiarism?

https://bitbucket.org/salmanmanekia/python/src/dfb37ae3e75ed3b722a32af324f7f8a5320da63f/Pong_game.py?at=master
I didn't

It's an online class of about 10,000. And Rey start you out with a template with most of the global varibales, like ball radius and such. And with 10k ppl, there are only so many different ways to write a 200 line code. Lol

ah okey.
Title: Re: My mini-project for my programming class
Post by: Thornz on November 10, 2013, 09:10:19 AM
Quote from: Santa on November 10, 2013, 09:06:33 AM
Quote from: Thornz on November 10, 2013, 08:59:04 AM
Quote from: Santa on November 10, 2013, 08:47:29 AM
Your professor/teacher didn't catch you for plagiarism?

https://bitbucket.org/salmanmanekia/python/src/dfb37ae3e75ed3b722a32af324f7f8a5320da63f/Pong_game.py?at=master
I didn't

It's an online class of about 10,000. And Rey start you out with a template with most of the global varibales, like ball radius and such. And with 10k ppl, there are only so many different ways to write a 200 line code. Lol

If you notice, the way that person did their code actually had quite a few differences in te main body of code

ah okey.
Title: Re: My mini-project for my programming class
Post by: Santa on November 10, 2013, 09:15:26 AM
Quote from: Thornz on November 10, 2013, 09:10:19 AM
Quote from: Santa on November 10, 2013, 09:06:33 AM
Quote from: Thornz on November 10, 2013, 08:59:04 AM
Quote from: Santa on November 10, 2013, 08:47:29 AM
Your professor/teacher didn't catch you for plagiarism?

https://bitbucket.org/salmanmanekia/python/src/dfb37ae3e75ed3b722a32af324f7f8a5320da63f/Pong_game.py?at=master
I didn't

It's an online class of about 10,000. And Rey start you out with a template with most of the global varibales, like ball radius and such. And with 10k ppl, there are only so many different ways to write a 200 line code. Lol

If you notice, the way that person did their code actually had quite a few differences in te main body of code

ah okey.

I didn't look at anything below the 10th line before, so I didn't realize it was changed.
Title: Re: My mini-project for my programming class
Post by: Iridion on November 10, 2013, 10:12:21 AM
Quote from: Santa on November 10, 2013, 09:15:26 AM
Quote from: Thornz on November 10, 2013, 09:10:19 AM
Quote from: Santa on November 10, 2013, 09:06:33 AM
Quote from: Thornz on November 10, 2013, 08:59:04 AM
Quote from: Santa on November 10, 2013, 08:47:29 AM
Your professor/teacher didn't catch you for plagiarism?

https://bitbucket.org/salmanmanekia/python/src/dfb37ae3e75ed3b722a32af324f7f8a5320da63f/Pong_game.py?at=master
I didn't

It's an online class of about 10,000. And Rey start you out with a template with most of the global varibales, like ball radius and such. And with 10k ppl, there are only so many different ways to write a 200 line code. Lol

If you notice, the way that person did their code actually had quite a few differences in te main body of code

ah okey.

I didn't look at anything below the 10th line before, so I didn't realize it was changed.

::)


i made one too, its the average program for beginners xd