This repository contains the code for the Battlehack20 fancyviewer. Before
you can use this package, you must first have battlehack20
or
battlehack20-minimal
installed.
To install the viewer, run
$ pip install battlehack20-fancyviewer
You can then edit run.py
in your battlehack20-scaffold to use this viewer as follows:
from fancyviewer import FancyViewer
...
if __name__ == "__main__":
...
viewer = FancyViewer(args.board_size, game.board_states)
You can also run a game from a log file in the following way:
$ python -m fancyviewer [log_file]