-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Made the speed tie test use PASSES_RANDOMLY #5092
Conversation
include/test/battle.h
Outdated
@@ -719,6 +719,7 @@ struct BattleTestRunnerState | |||
u8 checkProgressParameter; | |||
u8 checkProgressTrial; | |||
u8 checkProgressTurn; | |||
u32 occurenceCounter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have a think today about if there's something cleaner than adding a member to the test runner that's only used by one test.
Hack to allow results with PASSES_RANDOMLY
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work! A 24x speed improvement is amazing 🎉
Description
Made the speed ties test utilize
PASSES_RANDOMLY
instead of a largePARAMETRIZE
.This method utilizes the properties of the moves Endeavor, Super Fang, Crush Grip and Life Dew along with chosen max/starting HP value of the player Pokemon and chosen Atk/Def values to make calculation easier.
Final HP values of Mon1 and Mon2 were calculated manually then verified in the test runner after a setup had been finalized.
Discord contact info
hedara