Features include:
- soft drop and hard drop
- display ghost piece in hard-drop position (optional)
- indicate next piece (optional)
- left and right rotation
- customizable game area size
- customizable key bindings
- Nintendo scoring system
- 3 color schemes
See beginning of code for some options.
Please try it out and let me know about bugs and/or missing features!
Cite As
lp18692 (2024). Tetris for MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/78501-tetris-for-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2017a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.