Skip to content

Instantly share code, notes, and snippets.

@sotoseattle
Created August 18, 2015 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sotoseattle/938401cc7ea8b6822ea4 to your computer and use it in GitHub Desktop.
Save sotoseattle/938401cc7ea8b6822ea4 to your computer and use it in GitHub Desktop.

Ping Pang Pong!

You are back to the future. It is 1972. You, freshly out of high school and after a whole night of BBS and root beer have had an epiphany, a great idea that will make you rich: a video game console called Ataxy, and a game of tabble tennis you will call Ping Pang Pong! The goal of this exercise is to write the video game's software.

Using the graphics gem create a canvas in which a single ball/point bounces against the walls.

Requirements:

  • Minimum: the ball hits the wall and shows up in the opposite wall (like Asteroids)
  • Intermediate: the ball hits the wall and it deflects with the right angle.
  • Advanced: Add a paddle (a horizontal movable wall) that you can control, and play Ping Pang Pong!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment