| Percentage | Lines | ||
|---|---|---|---|
| Life |
|
50 % | 101 |
| GameOfLife |
|
89 % | 300 |
| Organisms |
|
100 % | 123 |
| World |
|
100 % | 95 |
| CRAP Score | Lines | ||
|---|---|---|---|
| Life::printMatrixCli() | 20 | 34 | |
| Organisms::getNeighborIndexes() | 13 | 15 | |
| GameOfLife::createWorld() | 9 | 11 | |
| GameOfLife::checkCells() | 8 | 13 | |
| Organisms::checkCell() | 7 | 20 | |
| GameOfLife::start() | 6 | 17 | |
| GameOfLife::createOrganisms() | 5 | 14 | |
| Life::start() | 4 | 9 | |
| GameOfLife::createXMLfromCells() | 4 | 36 | |
| GameOfLife::createLife() | 3 | 6 | |