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

Feat/countdown scoring #32

Merged

Conversation

joesharratt1229
Copy link
Collaborator

The following pr adds an implementation of the score_answer method for the countdown game.

Files amended

  • games/countdown.py - adds score_answer method, which checks if user provided answer matches the target. Handles cases of incorrectly formatted strings, null answers and partial rewards for partial solutions
  • tests/test_countdown.py - checks within test_coundown_games_items the reward matches expected outputs.

@joesharratt1229 joesharratt1229 changed the title Feat/countdown scoring #18 Feat/countdown scoring Jan 31, 2025
@andreaskoepf
Copy link
Contributor

Nice, please run pre-commit run -a for standard black formatting. For future you can run pre-commit install in the repo dir to install a local hook which runs the pre-commit checks while committing locally.

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.

Implement answer-scoring for the countdown number game dataset (e.g. via sympy)
2 participants