Skip to content

roflmaostc/PONGCaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Implementation of PONG using OCaml. Tested under Linux with OCaml 4.06, Windows may not be supported.

Compilation is done via:

ocamlbuild -package graphics -package unix pong.native

As you can see we use the Graphics package for visualization. unix is used for delay. Speed of the bar depends partially on the refresh rate of your keyboard. Adjusting can be done with:

xset r rate 250 60

First argument is delay, second is refresh rate. 100 for delay and 50 for refresh rate is good.

Execution via:

./pong.native

The bar can be moved with a and d.

About

Pong Implementation using OCaml

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages