jay2645 / geniusect Goto Github PK
View Code? Open in Web Editor NEWThe source code for the Geniusect AI.
The source code for the Geniusect AI.
Damage is always added even if these moves are used. On a related note, these moves never (or always) fail.
If we have a move which sets up entry hazards and the number of hazards of that type on the opponent's side of the field is not maxed out and we're not going to immediately die, we should set up an entry hazard of that type.
If Pokemon uses Gyro Ball or Trick Room, assume if has 0 Speed EVs and IVs. If it uses a Hidden Power AND has a 0 Speed IV, get the minimum Speed IV for a base 70 power Hidden Power of that type.
Exceptions: Has moves Rest, Sleep Talk, or Snore.
Refactoring only halfway done. Finish cleaning up code and adding comments.
This is harder because there are two possible variables that affect the outcome.
Drop the Speed EVs and IVs if it is slower than anticipated/uses Trick Room/uses Gyro Ball.
Entry hazards are neither placed nor is their damage properly calculated (always returns 0).
Assume Hidden Powers are always one of the most common (Ice, Fire Grass) and reverse-engineer the possible types based upon the effectiveness modifier.
If all 4 moves of a Pokemon are discovered, log it as a Spread to develop database, even if EVs are unknown. Also log the type of match it was found in.
All Hidden Powers currently have 31 IVs in all stats.
Only some abilities' effects are implemented.
If we have a Magnezone with Hidden Power Fire and the opponent has a Ferrothorn or Forretress out, we should switch in the Magnezone due to its ability trapping Ferrothorn from switching out. Similarly, if a Pokemon uses a move > base power 100 to kill someone and we have a Wobbuffet, switch in Wobbuffet to counter it.
Roar/Whirlwind are annoying and should die.
fix it jay
Fly, Hyper Beam, Solarbeam, etc. always only take one turn.
Fix it Jay
These moves also have no side effects (i.e. Confusion).
Toxic, Thunder Wave, etc. do not inflict status.
Use damage done to determine a range for the EV spread for the Attack/SpA stats.
Also check if a move does the inverse (I don't think there is).
Yay for exploits!
Recover, Roost, etc. don't restore any health.
Assign degree of probability a Pokemon is a particular spread. If multiple possibilities, return most popular one.
Requests for a Pokemon should always return a clone unless outright specified for the actual Pokemon.
Moves always hit.
Leftovers doesn't recover health, Choice items don't boost stats, etc.
i.e. The opponent switches in Ferrothorn on a fire-type or after we just used a fire-type move when they have a Heatran on their team.
Similarly, the only stat-dropping moves which work are Overheat, Psycho Boost, Leaf Storm, and Draco Meteor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.