this is how we can represent things like tetromino pieces as python values such as strings and lists the templatewidth and templateheight constants simply set how large each row and column for each shape' rotation should be (the templates will always be shapes {' 's_shape_template ' 'z_shape_template ' 'j_shape_template ' 'l_shape_template ' 'i_shape_template ' 'o_shape_template ' 't_shape_templatethe shapes variable will be dictionary that stores all of the different templates because each template has all the possible rotations of single shapethis means that the shapes variable contains all possible rotations of every possible shape this will be the data structure that contains all of the shape data in our game the main(function def main() global fpsclockdisplaysurfbasicfontbigfont pygame init( fpsclock pygame time clock( displaysurf pygame display set_mode((windowwidthwindowheight) basicfont pygame font font('freesansbold ttf' bigfont pygame font font('freesansbold ttf' pygame display set_caption('tetromino' showtextscreen('tetromino'email questions to the authoral@inventwithpython com