Skip to content

An implementation of Tetris in the Elm Programming Language: A project for my functional programming class

License

Notifications You must be signed in to change notification settings

dmeagher101/TetrElm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TetrElm

An implementation of Tetris in the Elm Programming Language: A project for my functional programming class.

You can compile this project using the included Makefile by issuing the command "make". Elm compiles to JavaScript, so you can run the resuling index.html file in a browser.

When developing this project, I tested it almost entirely using Chrome/Chromium. Other browsers may work, and indeed preliminary tests with Firefox seemed to run just fine, but please be aware that other browsers may exhibit behavior that we didn't encounter in our testing.

This project was made with Elm v0.18. Elm is a very rapidly changing language at this point in time, so I can't guarantee how long this code will work with the most recent version of Elm.

As for playing the game, the controls are fairly simple, and use the arrow keys and the spacebar. The left and right arrow keys move the currently falling Tetromino in their respective directions, the up arrow key rotates the block, the down arrow key accelerates its falling speed and the spacebar swaps out the Tetromino with whatever is in the hold box.

Feel free to contact me if you have any questions using the contact information on my GitHub.

About

An implementation of Tetris in the Elm Programming Language: A project for my functional programming class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published