Friday, March 15, 2013

pong with CodeSkulptor

I started taking a course on coursera.  The course is called An introduction to Interactive Programming in Python.  It teaches event driven programming.  Until this course I've only been using linear programming.  While  event driven programming is not the answer to every project it is awesome for games which is a huge interest of mine.  At the end of week 4 the mini project was pong.  I changed the code a little as you can see it looks like a little hockey rink. The game only works on at codeskulptor.  Maybe later I will try to use tkinker.  Here's the code! Just copy and paste it into CodeSkulptor!

Implementation of classic arcade game Pong!

 

here's the code