예제 #1
0
def main():
    filename = ''
    while filename != 'quit':
        try:
            filename = input('>')
            cgw.showReplay('noteworthy/' + filename)
        except IOError as e:
            try:
                cfw.showReplay('noteworthy/' + filename)
            except IOError as f:
                try:
                    cgw.showReplay(filename)
                except IOError as g:
                    try:
                        cfw.showReplay(filename)
                    except IOError as h:
                        print("Couldn't find file " + filename)
        except SyntaxError:
            print("Use quotes!")
        except NameError:
            print("Use quotes!")
예제 #2
0
def playReplay2(filename):
    CubeFightingWorld.showReplay(filename)