Commit Graph

3 Commits

Author SHA1 Message Date
Tom Stellard 013df8dd93 Add json interface
This adds an initial version of a json interface to bygfoot.  This
is still in development so the interface may change in the future.  This
interface can be used for writing tests or for communication between a
client and server.

To use the interface, you can pass a json file with commands to bygfoot
using the --json option.
2021-03-05 23:38:28 -05:00
Tom Stellard e7ff2f9d4d Use a callback for reporting progress of simulating games
This removes the gtk2 dependency from end_week_round_results() so it can
be potentially used with other frontends.
2021-03-05 23:38:28 -05:00
Tom Stellard a773634711 Factor user creation code out from the gtk callbacks
Also introduce a new Bygfoot struct for holding all the global data.
This will eventually replace all the global variables in bygfoot, but
for now it is an empty struct that we are just passing it through to
functions that access global variables.
2021-03-05 23:38:28 -05:00