(x, y)
Saves the game state.
Saves the game state.
Saves the game state .
def save_state(x, y):
    """
    Saves the game state.
    """

    with open("state.txt", "w") as f:
        f.write("{} {}".format(x, y))
def save_state ( x , y ) : with open ( "state.txt" , "w" ) as f : f . write ( "{} {}" . format ( x , y ) )