def convertToMapPic(byteString, mapWidth):
data = []<EOL>line = "<STR_LIT>"<EOL>for idx,char in enumerate(byteString):<EOL><INDENT>line += str(ord(char))<EOL>if ((idx+<NUM_LIT:1>)%mapWidth)==<NUM_LIT:0>:<EOL><INDENT>data.append(line)<EOL>line = "<STR_LIT>"<EOL><DEDENT><DEDENT>return data<EOL>
convert a bytestring into a 2D row x column array, representing an existing map of fog-of-war, creep, etc.