concept possibility in category c++

appears as: possibility, The possibility
Functional Programming in C++

This is an excerpt from Manning's book Functional Programming in C++.

You end up with two nested loops and a few variables to keep the current state of the process. Although the example is simple, it has a few places where you might make an error—an uninitialized (or badly initialized) variable, an improperly updated state, or a wrong loop condition. The compiler will report some of these mistakes as warnings, but the mistakes that get through are usually hard to find because our brains are hardwired to ignore them, just like spelling errors. You should try to write your code in a way that minimizes the possibility of making mistakes like these.

From the rules, you see the game has two main states: the state in which the scoring is numeric, and the state in which the players are in the deuce or advantage. The state with normal scoring keeps the scores of both players at the same time. Unfortunately, things aren’t that simple. If you used the previously defined points enum, you’d have the possibility of both players having 40 points, which isn’t allowed: it should be represented as the deuce state.