microsoft / jericho

A learning environment for man-made Interactive Fiction games.
GNU General Public License v2.0
257 stars 42 forks source link

Better support for games generated by TextWorld #1

Closed MarcCote closed 5 years ago

MarcCote commented 5 years ago

This PR adds score extraction for TextWorld's games. This is done by parsing the header provided by frotz (e.g. -= Bedroom =-2/7 where 2 is the score and 7 is the moves count).

This PR also replaces the error message printed when loading an unsupported game with a warning message instead. Finally, this PR adds two unit tests testing the aforementioned changes.

mhauskn commented 5 years ago

Thanks for this PR! Can you remove the jericho/libfrotz.so binary file?

MarcCote commented 5 years ago

Here you go.