Talk about a great sample of the week – the Small Basic blog announces a version of the classic Tetris written in Small Basic. At a little over 500 lines of code (530ish) its a pretty cool and yet manageable game program. If you were thinking of writing a version of Tetris of your own in any language this may be one you want to look at for ideas. The code is all there. And if you were not sure how for the simplicity of Small basic could take you (or students) this may impress you. It did me.
I’d love to hear what others think about this program and/or what they were inspired to do themselves after viewing it. And if nothing else, Tetris is always a great way to kill time until vacation ends. :-)
Oh and make sure you have the latest 0.2 version of Small Basic (feature information here.)
Gee, thanks for the compliment. Using Small Basic, I felt like I was back in the 80s with my Atari. I wrote this Tetris game Christmas day. Yes, it's very simple, but it's fairly complete.
It wasn't until a few days later while I was playing the game, and my son interrupted me when I realized I forgot a feature -- "Pause". Oh well. Live and learn.
-- Kenny Kasajian