sutt / chess

1 stars 0 forks source link

Game schema add #3

Closed sutt closed 6 years ago

sutt commented 6 years ago

This adds:

GameLog:GameSchema() - to parse pgn's for relevant info, e.g. turns when player in check.

utils: pgn_to_xpgn() - batch parse multiline pgn into an xpgn json which has GameSchema data built into it.

data/tests/ kickouts.txt + dummy_test.xpgn - used for tracking test outcomes.

tests/batchverify.py - parse xpgn's for soundness, and compare against Game.play() outcomes [now some pytests tests need to be run within tests/ directory] -> can use params at top of batchverify.py to change amount of xpgn games we run thru when calling pytest on them.