Skip to content
A simple tetris game in OCaml
OCaml
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Makefile
README
tetris.ml

README

Minimalist Tetris clone in OCaml.

Compile & run
$> make
$> ./tetris

controls: 
Q (or A)   : move left
D          : move right
W (or Z)   : rotate CW
S	   : rotate CCW
SPC (or F) : drop piece
TODO: 
- Add block preview
- Fix rotation algorithm
- Use a real timer (impossible with the graphic module)

DONE
- Delete completed lines
- Detect collision between blocks 
- Detect collision during rotation
- Add score
- Enable double buffering 
- Add game over detection
- Increase speed 

Author: Benjamin Negrevergne
License: GPLv3
You can’t perform that action at this time.