if __name__ ='__main__' main(the drawnextpiece(draws the --next|piece in the upper right corner of the screen it does this by calling the drawpiece(function and passing in arguments for drawpiece()' pixelx and pixely parameters that' the last function line and are run after all the function definitions have been executedand then the main(function is called to begin the main part of the program summary the tetromino game (which is clone of the more popular game--tetris||is pretty easy to explain to someone in english--blocks fall from the top of boardand the player moves and rotates them so that they form complete lines the complete lines disappear (giving the player pointsand the lines above them move down the game keeps going until the blocks fill up the entire board and the player loses |explaining it in plain english is one thingbut when we have to tell computer exactly what to do there are many details we have to fill in the original tetris game was designed and programmed one personalex pajitnovin the soviet union in the game is simplefunand addictive it is one of the most popular video games ever madeand has sold million copies with many people creating their own clones and variations of it and it was all created by one person who knew how to program with the right idea and some programming knowledge you can create incredibly fun games and with some practiceyou will be able to turn your game ideas into real programs that might become as popular as tetrisfor additional programming practiceyou can download buggy versions of tetromino from there are also variations of the tetromino game on the book' website --pentomino|is version of this game with pieces made up of five boxes there is also --tetromino for idiots||where all of the pieces are made up of just one box email questions to the authoral@inventwithpython com