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

Implement some improvements to random_ai and replay_loop #3002

Conversation

cgolubi1
Copy link
Contributor

  • Add replay_loop --test-output, which nondestructively replay-tests whatever happens to be in the output directory right now
  • Add random_ai support for initializing a new game's data object in a more readable way, by leaning on existing diff methods
  • replay_loop should error out immediately if prep_replay_games fails

This partially addresses #2953; in particular it adds the flag to nondestructively test whatever is in output/ right now, and reduces the work needed to turn test output into a responderTest to much closer to zero.

I've tested the new flags manually, and played about 900 novel and replayed games, and i'm satisfied with the changes.

* Add replay_loop --test-output, which nondestructively replay-tests whatever happens to be in the output directory right now
* Add random_ai support for initializing a new game's data object in a more readable way, by leaning on existing diff methods
* replay_loop should error out immediately if prep_replay_games fails
@cgolubi1
Copy link
Contributor Author

cgolubi1 commented Nov 2, 2024

@blackshadowshade could you take a quick look at this this weekend? If it needs more scrutiny, i'm happy to wait, but i suspect you're going to rubber stamp it since it's replay-test-only, and it'd be handy for me to have the new flag in the codebase for testing other things.

@blackshadowshade
Copy link
Contributor

Right, accepting these changes to random_ai and replay testing.

@blackshadowshade blackshadowshade merged commit a196415 into buttonmen-dev:master Nov 2, 2024
@cgolubi1 cgolubi1 deleted the 2953_replay_test_improvements branch November 9, 2024 02:56
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