Skip to content

jurevans/pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

131 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PONG - "ncurses" version - BETA

VERSION

0.6.3

Build

make

You can run this from the local bin directory via: ./bin/pong

Install

make install (Or, depending on your permissions, sudo make install

This will install pong to /usr/local/bin/. Update your executable path as needed.

At this point, you may want to clean your local build files:

make clean

Testing

make test

This will run Valgrind tests while the program is executing (defaults to valgrind ./bin/pong --leak-check=full -v (See Makefile for more info...)

Uninstall

So, this version of Pong wasn't your cup of tea? Well, that's fine, I suppose. Just run the following command and you will be rid of it for good! :-)

make uninstall

Play

Player 1 (LEFT): a for UP, z for DOWN (update src/include/pong.h to change)

Player 2 (RIGHT): ARROW UP for UP, ARROW DOWN for DOWN (update src/include/pong.h to change)

Documentation

As the code continues to grow, so will the documentation should it be formatted correctly. To generate the latest version of the docs, simply run:

doxygen Doxyfile

Dependencies

  • ncurses - ncurses ("new" curses - be sure to install ncurses.h - Many Debian/Ubuntu-based Linux distros package this in libncurses-dev)
  • Valgrind - Instrumentation Framework
  • Doxygen - Generate documentation from source code

AUTHOR INFO

-- JUSTIN R. EVANS --

jurevans@gmail.com

https://www.linkedin.com/in/justinrobertevans

http://fullstackconsultancy.net/

Additional Notes

Presently, this is set to two player mode.

Winning score is set to 21 as per the Atari 2600 implmentation

File structure overview:

.
β”œβ”€β”€ Makefile
β”œβ”€β”€ README.md
β”œβ”€β”€ bin
β”‚Β Β  β”œβ”€β”€ pong
β”œβ”€β”€ docs
β”œβ”€β”€ src
β”‚Β Β  β”œβ”€β”€ include
β”‚Β Β  β”‚Β Β  └── pong.h
β”‚Β Β  β”œβ”€β”€ obj
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ball.o
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ field.o
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ paddle.o
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ screen.o
β”‚Β Β  β”‚Β Β  └── user.o
|Β Β  β”œβ”€β”€ ball.c
β”‚Β Β  β”œβ”€β”€ field.c
β”‚Β Β  β”œβ”€β”€ paddle.c
β”‚Β Β  β”œβ”€β”€ pong.c
β”‚Β Β  β”œβ”€β”€ screen.c
β”‚Β Β  └── user.c

Enjoy!

About

Pong - NCurses Version! (C)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors