the image files that flippy uses can be downloaded from four-in- -row ( connect four clone by al sweigart al@inventwithpython com released under "simplified bsdlicense import randomcopysyspygame from pygame locals import boardwidth how many spaces wide the board is boardheight how many spaces tall the board is assert boardwidth > and boardheight > 'board must be at least difficulty how many moves to look ahead (> is usually too slow spacesize size of the tokens and individual board spaces in pixels fps frames per second to update the screen windowwidth width of the program' windowin pixels windowheight height in pixels xmargin int((windowwidth boardwidth spacesize ymargin int((windowheight boardheight spacesize brightblue ( white ( bgcolor brightblue textcolor white red 'red black 'black empty none human 'human computer 'computer def main() global fpsclockdisplaysurfredpilerectblackpilerectredtokenimg global blacktokenimgboardimgarrowimgarrowrecthumanwinnerimg global computerwinnerimgwinnerrecttiewinnerimg pygame init( fpsclock pygame time clock( displaysurf pygame display set_mode((windowwidthwindowheight)email questions to the authoral@inventwithpython com