football_dynamic, a C++ code which uses dynamic programming to count the number of ways a given particular score can be achieved in football.
To be clear, this code only considers the score of one team. Moreover, in reaching a score, the sequence in which points were made is considered significant. Thus, the two sequences 6 + 3 and 3 + 6, which both achieve a score of 9, and contain the exact same values, are counted as different ways of doing so. They certainly would be experienced differently in live action.
The information on this web page is distributed under the MIT license.
football_dynamic is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
cpp_combinatorics, a C++ code which considers a variety of problems in combinatorics involving counting, combinations, permutations, and so on.