コード例 #1
0
def load(name): #name must be a string
    global cont
    '''unpickles context from named file'''
    gamefile = open("psg"+name, 'r')
    cont = pickle.load(gamefile)
    gamefile.close()
    turnaction.rungame(cont)
コード例 #2
0
def run():
    '''runs the game'''
    global cont
    turnaction.rungame(cont)