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

Adding optimal ev (Train) feature, new app redesign, and Modal updates #30

Merged
merged 17 commits into from
Feb 25, 2024

Conversation

arjunpatel7
Copy link
Owner

Finally adding another new feature which increases the usefulness of the app.

The Train feature allows for optimal EV calculation given a game state of information. This is a non-trivial task to do in pokemon damage calculator!

Had to write and refactor a whole mess of stuff, in addition to more tests. Still needs more work to be maximally useful (there is only a small pool of moves as of now, but I'll fix and update that soon!

-Arjun

Simple tests for parts of the damage calculation engine.

Tested weather and type effectiveness
Tested neutral attack

Seems all good so far!
Added class types because I learned the hard way that types are important!

Added train_pokemon functionality, which allows for finding optimal evs

I want to add features to allow for finding optimal evs for neutral
and supereffective hits, as well as for multiple pokemon kos.

It would be cool to also solve for 2hko, 3hko as well.

:
- added some stuff to help do optimal ev calculation
-wrote some tests to confirm this
- retrieves move data and writes it locally for calculation stuff!

Eventually, I want to write this to a database as a sort of ETL pipeline
probably, maybe with mage.ai.... that way the application doesn't have to
be concerned with hosting the data it uses on deployment.
Also added ways to check if JSON is properly formatted.

I need more tests to check for junk or broken JSON.

Should be sufficient for demo for now, but will need
to change soon
This commit adds the damage calculation LLM to modal
and also allows for a bit of testing too!
Wrote a test for optimal ev calc stuff.

Need way more tests. Will set aside time writing many
for consistency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant