sarenji / pokebattle-sim Goto Github PK
View Code? Open in Web Editor NEWCompetitive Pokemon battle simulator.
License: MIT License
Competitive Pokemon battle simulator.
License: MIT License
To prevent duplication of effort, it would be helpful if pokebattle-sim was able to return JSON learnsets given a Pokemon (forme?) and generation number.
If a Pokemon is disabled, but is unable to move for whatever reason (e.g. Paralysis, Sleep, Attract), does the disable counter still go down?
A Pokemon should store references to moves rather than strings of those moves. Strings are unreliable.
Sandstorm/Hail should not affect Pokemon using Dig and Dive.
Each Pokemon should only have one of each type of Attachment.
They should support:
Attachments
class.true
/false
depending on whether it failed or not. This'll give us more control in order to do certain things.When a Pokemon faints, the owner can still select a move; if he does so, then the server acknowledges it for some reason.
Each Pokemon needs a variable that denotes the number of turns they have been in play since switch in. That is, every time it's switched in, this variable is reset to 0 turns.
Useful for implementation of Fake Out and Slow Start.
In all cases, you're acting against a Pokemon. Refactor it into pokemon.effectivenessOf(typeName)
.
Refactor modifyHP
, modifyAttack
etc into modifyStat(statName, ...
; all implementations use the same method internals anyway. And it's easier to extend.
Some status moves should not be affected by type immunities.
Jigglypuff used Sing!
But it doesn't affect Haunter...
However, Thunder Wave has the correct behavior.
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.