February 2021

Ping (Pong)

Pong game

Pong is one of the earliest arcade video games, first released in 1972 by Atari. It is a two-player game based on table tennis [ping pong]. The game features simple 2D graphics. It consists of two paddles used to return a bouncing ball back and forth across the screen. The score is kept by the numbers at the top of the screen.

I recreated this game in Python. A tiny project to further develop my OOP (Object-Oriented Programming) skills.

Pong code

You’ll notice that there are several lines in this program that start with a # symbol. The words following the # are a comment, added to make the code easier for users to read and understand.

For the type geeks: Typeface used for writing the code is Operator; a very fit workhorse specifically engineered for the screen by Hoefler&Co.