Skip to content

Release 2.0.0

Compare
Choose a tag to compare
@Benezivas Benezivas released this 12 Oct 10:12
· 1508 commits to main since this release
ffcd769

This release introduces a new ui feature, removes the problem files from this project (outsourced to algobattle-problems) and introduces an Observable pattern that makes it possible to observe the state of a match object during its run. As this means API changes, this is a major release.

Changes in more detail:

  • Use the new --ui option of battle to get a cleaner visual output during a run.
  • The match object now contains a match_data dict, replacing the old results dict. The contents of this dict are described in the docstring of the run method. The signature of run has been updated.
  • The calculation of points in util has been updated accordingly
  • Config files no longer include the options iteration_cap and approximation_iterations. These have been added as options (--iter_cap and --approx_iterations) to the battle script.
  • You can subscribe to a match object if you want to use the live data of a match. This is currently used for the ui output.
  • All problem files and their related tests (except for those used for unittests and delaytests) have been removed from this repository and moved into the algobattle-problems repository for logical separation.
  • Code, docstring and test cleanups