color value for xy spot is stored in board[ ][ ][ return board[boxx][boxy][ ]board[boxx][boxy][ def drawboxcovers(boardboxescoverage) draws boxes being covered/revealed "boxesis list of two-item listswhich have the spot of the box for box in boxes lefttop lefttopcoordsofbox(box[ ]box[ ] pygame draw rect(displaysurfbgcolor(lefttopboxsizeboxsize) shapecolor getshapeandcolor(boardbox[ ]box[ ] drawicon(shapecolorbox[ ]box[ ] if coverage only draw the cover if there is an coverage pygame draw rect(displaysurfboxcolor(lefttopcoverageboxsize) pygame display update( fpsclock tick(fps def revealboxesanimation(boardboxestoreveal) do the "box revealanimation for coverage in range(boxsize(-revealspeed revealspeed) drawboxcovers(boardboxestorevealcoverage def coverboxesanimation(boardboxestocover) do the "box coveranimation for coverage in range( boxsize revealspeedrevealspeed) drawboxcovers(boardboxestocovercoverage def drawboard(boardrevealed) draws all of the boxes in their covered or revealed state for boxx in range(boardwidth) for boxy in range(boardheight) lefttop lefttopcoordsofbox(boxxboxy if not revealed[boxx][boxy] draw covered box pygame draw rect(displaysurfboxcolor(lefttopboxsizeboxsize) else draw the (revealedicon shapecolor getshapeandcolor(boardboxxboxy drawicon(shapecolorboxxboxy email questions to the authoral@inventwithpython com