Skip to content

kozr/haskell_pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haskell_pong

Pong is a classic arcade game that has been around since the early 1970s. It is a two-player game in which each player controls a paddle on the opposite side of the screen. The goal of the game is to hit the ball back and forth across the screen, and each player must prevent the other from scoring a point by hitting the ball with their paddle. This code implements an AI opponent instead of a second player.

How to run

ghci
:l main
main

Troubleshooting

If Exception: user error (unknown GLUT entry glutInit) is thrown, try copying Main.hs file to the root directory and running the above command again. If it still does not work, you might have to install freeglut (or adding freeglut.dll and freeglut.lib files to the project's root directory).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •