Re: Can anyone help me modify the code so the ball starts in random directions

2015-12-11 Thread Erik
Hi, On 11/12/15 23:19, phamton...@gmail.com wrote: Can anyone direct me in the direction where to start the code for the randomized of the ball to start. Your questions over the last week or so appear to be homework assignments. However, I'll give you a hint: in the interactive interprete

Re: Can anyone help me modify the code so the ball starts in random directions

2015-12-11 Thread Erik
Hi, On 11/12/15 23:19, phamton...@gmail.com wrote: Can anyone direct me in the direction where to start the code for the randomized of the ball to start. Your questions over the last week or so appear to be homework assignments. However, I'll give you a hint: in the interactive interprete

Re: Can anyone help me modify the code so the ball starts in random directions

2015-12-11 Thread phamtony33
On Friday, December 11, 2015 at 7:55:59 PM UTC-5, Steven D'Aprano wrote: > On Sat, 12 Dec 2015 10:19 am, phamton...@gmail.com wrote: > > > Can anyone direct me in the direction where to start the code for the > > randomized of the ball to start. > > [...] > > move_ball(-10, 7, 0) > > > That s

Re: Can anyone help me modify the code so the ball starts in random directions

2015-12-11 Thread Steven D'Aprano
On Sat, 12 Dec 2015 10:19 am, phamton...@gmail.com wrote: > Can anyone direct me in the direction where to start the code for the > randomized of the ball to start. [...] > move_ball(-10, 7, 0) That starts the ball moving, with x-speed of -10 and y-speed of 7. Instead use something similar to

Re: Can anyone help me modify the code so the ball starts in random directions

2015-12-11 Thread phamtony33
from Tkinter import * window = Tk() canvas = Canvas(window, width=500, height=500, background="green") canvas.pack() def mouse_paddle_move(event): mouseY = event.y current_coords = canvas.coords("paddle") x1 = current_coords[0] y1 = current_coords[1] x2 = cu

Re: Can anyone help me modify the code so the ball starts in random directions

2015-12-11 Thread Rick Johnson
On Friday, December 11, 2015 at 5:20:13 PM UTC-6, phamt...@gmail.com wrote: > Can anyone direct me in the direction where to start the code for the > randomized of the ball to start. No, because your problem needs to be simplified first. A good first step would be to create a new script that o

Can anyone help me modify the code so the ball starts in random directions

2015-12-11 Thread phamtony33
Can anyone direct me in the direction where to start the code for the randomized of the ball to start. from Tkinter import * window = Tk() canvas = Canvas(window, width=500, height=500, background="green") canvas.pack() def mouse_paddle_move(event): mouseY = event.y current_coo