Skip to content

Instantly share code, notes, and snippets.

View mohdsaquib93's full-sized avatar

Mohd Saquib mohdsaquib93

View GitHub Profile
@mohdsaquib93
mohdsaquib93 / pong.py
Created July 30, 2018 18:02
Basic version of Pong
# Implementation of classic arcade game Pong
import simplegui
import random
# initialize globals - pos and vel encode vertical info for paddles
WIDTH = 600
HEIGHT = 400
BALL_RADIUS = 20
PAD_WIDTH = 8