fallfreq (level fall frequency (seconds - level as you can seewith this new equationlevel would only be as hard as the original level you can change the game to be as difficult or easy as you like by changing the equations in calculatelevelandfallfreq(generating pieces with the getnewpiece(function def getnewpiece() return random new piece in random rotation and color shape random choice(list(shapes keys()) newpiece {'shape'shape 'rotation'random randint( len(shapes[shape] ) ' 'int(boardwidth int(templatewidth ) ' '- start it above the board ( less than 'color'random randint( len(colors)- ) return newpiece the getnewpiece(function generates random piece that is positioned at the top of the board firstto randomly choose the shape of the piecewe create list of all the possible shapes by calling list(shapes keys()on line the keys(dictionary method returns value of the data type --dict_keys||which must be converted to list value with the list(function before being passed to random choice(this is because the random choice(function only accepts list values for its parameter the random choice(function then randomly returns the value of an item from the list the piece data structures are simply dictionary value with the keys 'shape''rotation'' '' 'and 'coloremail questions to the authoral@inventwithpython com