Tetrihs is the tetris game implemented in Haskell using CodeWorld library. The project arises as a task for the subject "Declarative Programming" from the Computer Science degree at the University of Seville.
- Play tetris with 10 differents difficult levels
- Cheesy level
- Easy Peasy
- Easy
- Meh
- Okay
- Medium
- Hard
- Why are u running?
- Your actions have consequences
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- Play in your favourite web browser (We don't expect that you use Internet Explorer)
- Keep a scoreboard and beat all the records.
There are three principal modules.
- Blocks.hs: Contains all the functions and types related to the figures.
- Tetris.hs: Contains the entry point to the game.
- CodeWorldInterface.hs: Contains all the functions and structures needed to play with the CodeWorld interface
- Scores.hs: Contains all the functions related to the scores management.
After clone the repository, follow these steps.
- Execute ghci
- Load the Tetris module with :l Tetris.hs
- Execute tetris
Use the following keys:
- Down Arrow -> Move a figure down.
- Right Arrow -> Move a figure to the right.
- Left Arrow -> Move a figure to the left.
- Ctrl -> Rotate a figure.