"Interprets coords in the format "hc", with "aa" being top left quadrant"
if not s:
return None
x_coord, y_coord = [SGF_COLUMNS.index(coord) for coord in s]
return W + W * y_coord + x_coord
def parse_coords(s):
"Interprets coords in the format "H3", with A1 being lower left quadrant."
After Change
"Interprets coords in the format "aj", with "aj" being top right quadrant"
if not s:
return None
return tuple(map(SGF_COLUMNS.index, s))
def parse_coords(s):
"Interprets coords in the format "H3", with A1 being lower left quadrant."