message and check your code for any typos you can also copy and paste your code into the web form at code in the book you'll probably pick up few ideas about how the program works just by typing it in once and when you're done typing it inyou can then play the game for yourself memory puzzle by al sweigart al@inventwithpython com released under "simplified bsdlicense import randompygamesys from pygame locals import fps frames per secondthe general speed of the program windowwidth size of window' width in pixels windowheight size of windowsheight in pixels revealspeed speed boxessliding reveals and covers boxsize size of box height width in pixels gapsize size of gap between boxes in pixels boardwidth number of columns of icons boardheight number of rows of icons assert (boardwidth boardheight = 'board needs to have an even number of boxes for pairs of matches xmargin int((windowwidth (boardwidth (boxsize gapsize)) ymargin int((windowheight (boardheight (boxsize gapsize)) gray ( navyblue white ( red ( green blue yellow ( orange ( purple ( cyan bgcolor navyblue lightbgcolor gray boxcolor white highlightcolor blue donut 'donut