[Tutor] the ball needs a kick...

2010-07-05 Thread Schoap D
Hi,

I'm doing the exercises here: chapter 8
http://www.openbookproject.net/thinkCSpy/ch08.html

Now I have added another paddle to the pong game. So far so good, but the
ball isn't moving anymore and I am not able to fix it...
Any comments, tips, feedback?

Thanks in advance,

http://paste.pocoo.org/show/233739/


Dirk
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] help learning python

2010-07-03 Thread Schoap D
Hi,

I'm busy with this tutorial
http://www.openbookproject.net/thinkCSpy/index.html
I need some feedback and help to be able to learn Python.

For instance, now I'm working on chapter 8, 8.13 exercise 1, 2 and 3. Code
become pretty complex for me there:
http://www.openbookproject.net/thinkCSpy/ch08.html

Exercise 1, I tried to solve with:

mitt = Box((780, 300), mitt_x, mitt_y, filled=True, thickness=1)

I added 780 and 300 as center for the paddle, is that right?

Exercise 2: I have this code now:
http://paste.pocoo.org/show/233057/

What do you think of the code? Is it right? Also within the context of the
pong code?

Next step will be to let the ball bounce back and to replace the distance
function with the new hit fuction in the pong code. But I'm not sure how and
where to place the call to the hit function in pong code... Please give some
feedback and help.

Thanks in advance,

Dirk
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor