Skip to content

Latest commit

 

History

History
43 lines (40 loc) · 933 Bytes

README.md

File metadata and controls

43 lines (40 loc) · 933 Bytes

HaskellPong

Small pong game written in Haskell.

Building

This should be straight forward with cabal:
Once in the directory

cabal configure
cabal build

Running the game

./dist/build/HaskellPong/HaskellPong

The game can be played with the following options (command line parameter):

  • 0 - Computer against computer
  • 1 - 1 player (bottom player) against computer
  • 2 - 2 players (default)

How to play

To move the top player the keys are:

  • A - Move left
  • D - Move right
  • S - Release the ball

To move the bottom player the keys are:

  • Left arrow - Move left
  • Right arrow - Move right
  • Up arrow - Release the ball

Score:

  • R - reset the score