Tetris for Dummies

Tetris with easy code layout and extensive comments.

You are now following this Submission

Tetris game code with sounds, high scores and gravity. It is intended as a learning tool with its extensive comments and laid out code with easy getarounds and simple functions. The code explores things such as loops and if statements, patch, save/load, GUI techniques, callbacks and sound generation.

It can be easily edited to suit one's needs and/or to make it more modular, and I hope at least some people will learn new things from it :)

Cite As

Husam Aldahiyat (2026). Tetris for Dummies (https://se.mathworks.com/matlabcentral/fileexchange/21246-tetris-for-dummies), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: MATLABTETRIS

Categories

Find more on Video games in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Added help and minor corrections

1.1.0.0

Acknowledgements added

1.0.0.0