FenParser0x88 has an incredibly high CRAP at 118,000! (was: 224,000) This should be on the order of 10e0.
The following functions are the worst offenders
- getValidMovePathsForPiece() - CRAP: 6k
- getFromAndToByNotation() - CRAP: 1.9k
- getValidSquaresOnCheck() - CRAP: 0.7k (was: 1.0k)
- getCaptureAndProtectiveMoves() - CRAP: 0.5k (was: 0.7 k)
- getNotationForAMove() - CRAP: 0.7k
They can be fixed by writing tests and refactoring.