Skip to content

basile-henry/HaskellPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Small pong game written in Haskell.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published