fonse / pokemon-battle Goto Github PK
View Code? Open in Web Editor NEWPokemon battle simulator for nodejs
License: MIT License
Pokemon battle simulator for nodejs
License: MIT License
Add support for team battles (e.g.: 3v3 or 6v6)
Hi, Thanks so much for your amazing work and I hope continue this project. However when i modify or add some code in *.coffee files, nothing changes. For example, I change the default name "the foe" to "Iris" in index.coffee, but when i run this in cmd:
coffee
coffee>pokemon = require 'pokemon-battle'
coffee>console.log pokemon.battle 1,2
it still shows "the foe" not "Iris".
So how to edit the source code and make it work?
Thank you so much >3<
Output for Espeon:
Psychic (Psychic - 90 power - 100 accuracy) 3996000
Psychic (Psychic - 90 power - 100 accuracy) 3996000
Psyshock (Psychic - 80 power - 100 accuracy) 3552000
Psybeam (Psychic - 65 power - 100 accuracy) 2886000
Shadow Ball (Ghost - 80 power - 100 accuracy) 2604800
Dazzling Gleam (Fairy - 80 power - 100 accuracy) 2604800
Confusion (Psychic - 50 power - 100 accuracy) 2220000
Grass Knot (Grass - X power - 100 accuracy) 1776000
Swift (Normal - 60 power - 100 accuracy) 1598400
Round (Normal - 60 power - 100 accuracy) 1598400
Echoed Voice (Normal - 40 power - 100 accuracy) 1065600
Facade (Normal - 70 power - 100 accuracy) 1045800
Retaliate (Normal - 70 power - 100 accuracy) 1045800
Quick Attack (Normal - 40 power - 100 accuracy) 794808
Tackle (Normal - 50 power - 100 accuracy) 747000
Cut (Normal - 50 power - 95 accuracy) 709650
Hi! So my coworkers and I have been using your herokuapp website for about 2 years now. We use it to settle who is paying for lunch, who pays at the vending machine, and just to battle each other to see who can make the best team. The AI is so ingrained in our brains that we know the meta for each generation available. Needless to say we are saddened to see the website go down, but you are kind enough to provide a way to run it.
Now I have never coded a day in my life and I am STRUGGLING to get this thing running. Is there anyway you can point me in the right direction? Is there an easy way to get this set up that im too dumb to see? I know this is a big ask, but that alone should show you how important this AI has been for me and my friends.
Best wishes
Some notes:
npm install
git submodule update --init
Then sparsecheckout = true
in .git/modules/pokedex/config
cat .git/modules/pokedex/info/sparse-checkout
pokedex/data/csv/*
Finally, run git read-tree -m -u HEAD
The sword and shield generation are missing from the list. Would love if you could add them :)
I should change the csv parser to consider pre-evolutions.
hubot fight my porygon-z against @fonso's blastoise
Does not work.
Please fix. I can't fight with my porygon-z!
For example, Flare Blitz has recoil and can inflict burn.
Sample fight:
@fonso's Volcarona used Acrobatics!
It's super effective!
Your Mothim is hit for 204 HP (73%)
Your Mothim used Acrobatics!
It's super effective!
@fonso's Volcarona is hit for 311 HP (100%)
@fonso's Volcarona fainted!
You defeated @fonso!
Mothim: 77 HP (27%) left.
Mothim has def == sp. def, but Volcarona has much higher sp. atk than atk. Volcarona should use Fire Blast instead of Acrobatics; Fire Blast would KO Mothim in one hit.
Make a Condition class similar to StatusAilment.
Namely, the attacker's negative stages and the defender's positive stages.
Poison Fang should have a 50% chance to badly poison
The recoil damage is off, to test make Pichu fight Pidgey, volt tackle recoil will knock out Pichu but it shouldn't because 30% of that damage isn't Pichu's HP.
https://pokemon-battle.herokuapp.com/ Pichu vs Pidgey
@jabu's Gastrodon fained!
It should say "fainted".
The simulator trigger a ReferenceError: Move is not defined
when using a pokemon with one move (e.g. Ditto).
"132": {
"id": 132,
"name": "Ditto",
"types": [
1
],
"stats": {
"hp": 48,
"attack": 48,
"defense": 48,
"spattack": 48,
"spdefense": 48,
"speed": 48
},
"moves": [
144
],
"weight": 40,
"height": 3
}
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.