Announcements:

Code of the Week:

tetris.m   The popular computer game, written by Maurice Smith. Written with an earlier version of Matlab in 1995, so some warnings appear. Some code will have to be changed for this file to work in future versions of Matlab. But it still works in version 13 (feel free to update the old code; send it to me and I'll post it). You can either select all the text and save it as tetris.m (not a .txt file) or right-click on the link and "Save Target As", add a .m to the filename and choose "All Files" from the "Save as type" menu. Save the file to the working directory of your Matlab session. Then type "tetris" at the prompt.