Wthor is a rather archaic data-format used extensively by the Fédération Française d'Othello to document games of Othello. As a result of their massive collection, Wthor has become a popular data-format in this space. Unfortunately, the only official documentation on the format is both quite poorly described and in French, which I do not speak. After translating the page with Google Translate this library was written to extract the most interesting information. As a result, most of the data held in a Wthor-formatted file is not extracted. The information most relevant to Othello bots are the games themselves, which can be extracted with this library. The games are simply presented as a long number of moves but since players sometimes need to pass their turn, it is impossible to know which player played which move without evaluating the game, stepping through the moves one by one. This is also something this library can handle. The data extracted and optionally inferred can later be converted to more convenient and widely-supported formats.
Add this to your Cargo.toml
:
toml
[dependencies]
wthor = "0.2"