Day22 Goals: what you will make by the end of the day

Untitled

#Sequence diagram

Untitled

#Class diagram

Untitled

Setup the Main Screen

Untitled

#main.py

from turtle import Screen, width

screen = Screen()
screen.bgcolor("black")
screen.setup(width=800, height=600)
screen.title("pong")

screen.exitonclick()

Create a Paddle that responds to key Presses

Untitled

from turtle import Screen, Turtle

screen = Screen()
screen.bgcolor("black")
screen.setup(width=800, height=600)
screen.title("pong")

paddle = Turtle()
paddle.shape("square")
paddle.color("white")
paddle.shapesize(stretch_wid=5, stretch_len=1)
paddle.penup()
paddle.goto(350, 0)
screen.exitonclick()

Write the Paddle Class and Create the Second Paddle