parameters: (coord)
return_statement: return go.N * coord[0] + coord[1]
docstring: Converts from a Minigo coordinate to a flattened coordinate.
docstring_summary: Converts from a Minigo coordinate to a flattened coordinate.
docstring_tokens: Converts from a Minigo coordinate to a flattened coordinate .
function: def to_flat(coord):
      """Converts from a Minigo coordinate to a flattened coordinate."""
      if coord is None:
          return go.N * go.N
      return go.N * coord[0] + coord[1]
function_tokens: def to_flat ( coord ) : if coord is None : return go . N * go . N return go . N * coord [ 0 ] + coord [ 1 ]