If you ever wondered how to build tetris, fear no longer. The
Small Basic team has a sample of Tetris in SmallBasic. The post has all the source in their blog posting and can just be cut and copied to a fully functional game.
You can grab Small Basic over at DevLabs on MSDN.