Next: Troubleshooting, Previous: Common Arbiters Tasks, Up: Top [Contents]
Chess Arbiter Tools offers a python library which programmers can use in other programs. It provides the class “Tournament”, with the following properties and methods:
You can create an instance of the class Tournament easily:
mytournament = arbitools.Tournament()
info This dictionary encapsulates important information about the tournament:
players data List of dictionaries with the data of the players.
output_to_file(inputfile) It takes one argument, the name of the file to output the information.
export_to_file(inputfile) This method creates a file with the official Krause FIDE format and fill it with the tournament info and the players data.
applyARPO(inputfile) It applies the tiebreaks created by Julio Gonzalez and Jose Carlos Diaz. It outputs the results to a file with the “_ARPO.csv” suffix.