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

Min/Max Stat Ranges #88

Open
pmariglia opened this issue Dec 12, 2021 · 3 comments
Open

Min/Max Stat Ranges #88

pmariglia opened this issue Dec 12, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@pmariglia
Copy link
Owner

During a battle, certain information could reveal minimum / maximum stat values for the opponent's pokemon.

For example: if the enemy Pokemon moved before your Pokemon with an equal-priority move then the must have at least the same speed as your active Pokemon. Care must be taken to account for things like speed-boosting abilities that may be present, or speed-boosting weather.

This information is extremely valuable when inferring which set the opposing Pokemon may have. I have seen situations where information was provided that the opposing Pokemon was 100% faster than the bots Pokemon, but the spread the bot assumed was such that the opponents Pokemon was certainly slower. This resulted in the bot thinking it can stay in and KO the opponent when in reality it cannot.

The bot should be able to constantly update minimum/maximum stat values as the battle progresses, and then not assume sets that contradict these min/max stat ranges.

Adding to the example provided, something similar can also be done for the other stats: HP, ATK, DEF, SPA, SPD. Speed is the easiest one however and should be done first as a proof-of-concept.

@pmariglia pmariglia added the enhancement New feature or request label Dec 12, 2021
@pmariglia pmariglia self-assigned this Dec 12, 2021
@pmariglia
Copy link
Owner Author

Implemented stat range checks in 1dad418.

Unused at the moment.

@pmariglia
Copy link
Owner Author

@pmariglia
Copy link
Owner Author

An oversight fixed in 23776ba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant