fizz(param file " :\rectest py"line in fizz print(paramruntimeerrormaximum recursion depth exceeded recursive calls and base cases will be used to perform the flood fill algorithmwhich is described next the flood fill algorithm the flood fill algorithm is used in star pusher to change all of the floor tiles inside the walls of the level to use the --inside floor|tile image instead of the --outside floor|tile (which all the tiles on the map are by defaultthe original floodfill(call is on line it will convert any tiles represented with the string (which represents an outdoor floorto 'ostring (which represents an indoor floor def floodfill(mapobjxyoldcharacternewcharacter) """changes any values matching oldcharacter on the map object to newcharacter at the (xypositionand does the same for the positions to the leftrightdownand up of (xy)recursively "" in this gamethe flood fill algorithm creates the inside/outside floor distinction this is "recursivefunction for more info on the flood fill algorithmsee if mapobj[ ][ =oldcharacter mapobj[ ][ynewcharacter line and converts the tile at the xy coordinate passed to floodfill(to the newcharacter string if it originally was the same as the oldcharacter string if len(mapobj and mapobj[ + ][ =oldcharacterfloodfill(mapobjx+ yoldcharacternewcharactercall right if and mapobj[ - ][ =oldcharacterfloodfill(mapobjx- yoldcharacternewcharactercall left if len(mapobj[ ] and mapobj[ ][ + =oldcharacterfloodfill(mapobjxy+ oldcharacternewcharactercall down if and mapobj[ ][ - =oldcharacterfloodfill(mapobjxy- oldcharacternewcharactercall up these four if statements check if the tile to the rightleftdownand up of the xy coordinate are the same as oldcharacterand if soa recursive call is made to floodfill(with those coordinates email questions to the authoral@inventwithpython com