#!/usr/bin/python"""Gets a game from an SGF file."""importsysfromimago.sgfParser.sgfimportloadGameTreedefmain():filename=sys.argv[1]move=loadGameTree(filename)whilemoveisnotNone:move.printBoard()iflen(move.nextMoves)>0:move=move.nextMoves[0]else:move=Noneif__name__=='__main__':main()