6. Advanced functionality supported in cl.py

This section describes advanced functionality available through the cl.py file for each game that you may need as your game becomes more sophisticated.

Before reading this section, you should be familiar with the basic functionality supported in the cl.py file for each game. If you have followed this documentation in order, you will have read about this basic functionality. As a reminder, the relevant sections of the documentation were:

6.1. Using a RelativeRange object in ROUND_BEHAVIOUR_RANGES

The use of a RelativeRange object gives you more control over the allowed parameters for a game round so you can avoid boilerplate code sanitising inputs. It is useful in cases where the allowed values for a particular parameter cannot be independently stated, but actually depend on the value chosen for another parameter.

6.2. Using a RelativeDefault object in DEFAULT_ROUND_BEHAVIOUR

<< TODO >>