def sgf_to_gamestate(sgf_string):
 for (gs, move, player) in sgf_iter_states(sgf_string, True):
  pass
 return gs

def sgf_to_gamestate ( sgf_string ) : for ( gs , move , player ) in sgf_iter_states ( sgf_string , True ) : pass return gs
creates a gamestate object from the first game in the given collection .