Skip to content

Testing

Lecale edited this page Feb 22, 2018 · 6 revisions

It goes without saying that this code is probably riddled with bugs. That is one reason why we have a few really basic testing utilities included. These allow me to quickly run through tournament scenarios and check if the results look valid or not. As a user of the code, you may wish to do the same thing. You may also wish to simply see how the tournament pans out using the software, or you may wish just to practice using the software.

Player Autogeneration

You will automatically be prompted for this. If you answer "Yes" then you can input 3 parameters to create a Players.txt file full of silly names with ratings entered around a midpoint and extending up and down by a certain range. By default all the players will be scheduled to play in all rounds.

Result Autogeneration

When you are prompted if you are ready to read in the results you can type "auto". This will fill the RoundNResults.txt file with 45% chance of a win for one player, 8% for a draw, and 2% for a double default.

There are probably more useful testing utilities which could have been included, but they haven't been. Sorry about that.

Verbose Mode

To turn on Verbose mode you can enter a new line in the settings.txt file such as
Debug: True
This will let you see lots of additional output in the console. Pairings, seedings, evolution of the draw, all kinds of things you probably have no interest in. Of course, you need to press Return much more often in this mode.

Clone this wiki locally