slide puzzle how to play slide puzzle the board is grid with fifteen tiles (numbered through going left to rightand one blank space the tiles start out in random positionsand the player must slide tiles around until the tiles are back in their original order source code to slide puzzle this source code can be downloaded from messageslook at the line number that is mentioned in the error message and check your code for any typos you can also copy and paste your code into the web form at book slide puzzle by al sweigart al@inventwithpython com creative commons by-nc-sa us import pygamesysrandom from pygame locals import create the constants (go ahead and experiment with different values boardwidth number of columns in the board boardheight number of rows in the board tilesize