Skip to content

Instantly share code, notes, and snippets.

@tukan
Created November 5, 2013 13:00
Show Gist options
  • Save tukan/7318666 to your computer and use it in GitHub Desktop.
Save tukan/7318666 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import libHandParser
def check_file(fname):
parser = libHandParser.PyDictConverter()
hands = parser.ParseFile(fname)
for h in hands:
if h['header']['game_id'] == '89437823299':
print h['header']['collected']
if __name__ == "__main__":
print "test.txt:"
check_file('test.txt')
print
print "File_0.txt:"
check_file('File_0.txt')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment