Small pong game written in Haskell.
This should be straight forward with cabal:
Once in the directory
cabal configure
cabal build
./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)
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