def sgf_to_gamestate(sgf_string):
	# Don't Repeat Yourself; parsing handled by sgf_iter_states
	for (gs, move, player) in sgf_iter_states(sgf_string):
		pass
	# gs has been updated in-place to the final state by the time
	# sgf_iter_states returns
	return gs
Creates a GameState object from the first game in the given collection
dataset/ETHPy150Open Rochester-NRT/RocAlphaGo/AlphaGo/util.py/sgf_to_gamestate