Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checker #25

Merged
merged 7 commits into from
Aug 9, 2022
Merged

Checker #25

merged 7 commits into from
Aug 9, 2022

Conversation

crl-n
Copy link
Collaborator

@crl-n crl-n commented Aug 9, 2022

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

@crl-n crl-n requested a review from Caruychen August 9, 2022 11:13
Copy link
Owner

@Caruychen Caruychen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, could be pretty useful for evaluating!

@Caruychen Caruychen merged commit 594c067 into main Aug 9, 2022
@Caruychen Caruychen deleted the checker branch August 9, 2022 11:18
@Caruychen Caruychen restored the checker branch August 9, 2022 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants