This is a simple checker script. Currently it focuses on validating the solution part of the Lem-in output. It checks that each move is formatted correctly and that the information in the move is valid.
It checks:
That ant numbers go from 1 upward
That each ant is moving to a valid node
That each move starts with 'L'
That room names don't start with 'L' or '#'
That each ant moves only once each turn
Use it like this: ./lem-in < map | python3 tests/checker/checker.py
This is a simple checker script. Currently it focuses on validating the solution part of the Lem-in output. It checks that each move is formatted correctly and that the information in the move is valid.
It checks:
Use it like this:
./lem-in < map | python3 tests/checker/checker.py