Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Pong in the terminal, with Node.
JavaScript
branch: master

This branch is 13 commits behind hughsk:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
game.js
package.json
pong.js

README.md

Pong

In Node, with your terminal. Thanks go to TooTallNate's ansi module for terminal trickery.

Installation

npm install -g pong

Usage

Pretty straight-forward, once it's installed just type pong into your terminal to get started. There's a couple of options too:

Usage: pong [--beep|--help|--width <number>|--height <number>]

Options:
  -W, --width   Set the width of the playing field   [default: 80]
  -H, --height  Set the height of the playing field  [default: 24]
  -b, --beep    Enable beeping                       [boolean]  [default: false]
  -h, --help    Help!
Something went wrong with that request. Please try again.