Mahjong Score Calculator #3 – On Tackling Cognitive Complexity
Cognitive complexity measures how difficult it is to understand a piece of code. The more conditional statements and nesting loops present, the higher the cognitive complexity is penalised.