Save.py
def save(stage):
    'Allows for the current game to be saved for a later time.\
     The convinience of this function fills you with determination.'
    saveFile = open('save.txt', 'w+')#Creates the file to be saved in.
    saveFile.write(str(stage.gridSize) + '\n')#the grid size is put in 1st line
    #Grid is saved with every x axis on its own line.
    for xAxis in range(len(stage.grid)):
        for yAxis in range(len(stage.grid[xAxis])):
            saveFile.write(str(stage.grid[xAxis][yAxis]))
        saveFile.write('\n')   
    #Amount of moves remaining and the total move count are saved in the last
    #two lines
    saveFile.write(str(stage.movesRemaining) + '\n' + str(stage.totalSlides))
    saveFile.close()
Allows for the current game to be saved for a later time.\
     The convinience of this function fills you with determination.
Allows for the current game to be saved for a later time.\
The convinience of this function fills you with determination.
Allows for the current game to be saved for a later time . \ The convinience of this function fills you with determination .
def save(stage):
    saveFile = open('save.txt', 'w+')
    saveFile.write(str(stage.gridSize) + '\n')
    for xAxis in range(len(stage.grid)):
        for yAxis in range(len(stage.grid[xAxis])):
            saveFile.write(str(stage.grid[xAxis][yAxis]))
        saveFile.write('\n')   
    saveFile.write(str(stage.movesRemaining) + '\n' + str(stage.totalSlides))
    saveFile.close()
def save ( stage ) : saveFile = open ( 'save.txt' , 'w+' ) saveFile . write ( str ( stage . gridSize ) + '\n' ) for xAxis in range ( len ( stage . grid ) ) : for yAxis in range ( len ( stage . grid [ xAxis ] ) ) : saveFile . write ( str ( stage . grid [ xAxis ] [ yAxis ] ) ) saveFile . write ( '\n' ) saveFile . write ( str ( stage . movesRemaining ) + '\n' + str ( stage . totalSlides ) ) saveFile . close ( )
Allows for the current game to be saved for a later time.\
The convinience of this function fills you with determination.
Allows for the current game to be saved for a later time . \ The convinience of this function fills you with determination .
'Allows for the current game to be saved for a later time.\
     The convinience of this function fills you with determination.' #Creates the file to be saved in.
 #the grid size is put in 1st line
 #Grid is saved with every x axis on its own line.
 #Amount of moves remaining and the total move count are saved in the last
 #two lines

stage