Giter Site home page Giter Site logo

pokemon-battle's People

Contributors

duranda avatar fonse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pokemon-battle's Issues

Team battles

Add support for team battles (e.g.: 3v3 or 6v6)

  • Accept both an array of pokemon ids or a single id
  • Automatically switch pokemon upon another one fainting
  • Decide which pokemon to take out based on opposing pokemon
  • Chance to switch pokemon during battle
  • Implement or ban U-Turn and Pursuit
  • Update the readme

How to modify the .coffee file and make it work?

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<

Duplicate moves in buildDebug

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

A Little Help For a Noob and a Big Fan

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

Write an introduction to development

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

Porygon-Z doesn't work

hubot fight my porygon-z against @fonso's blastoise

Does not work.

Please fix. I can't fight with my porygon-z!

Mothim beats Volcarona due to Volcarona using the wrong strategy

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.

http://bulbapedia.bulbagarden.net/wiki/Volcarona

http://bulbapedia.bulbagarden.net/wiki/Mothim

Support for status ailments

  • Burn
  • Freeze
  • Paralysis
  • Sleep (No damaging move inflicts Sleep except for Meloetta's Relic Song)
  • Poison
  • Badly poisoned

fained

@jabu's Gastrodon fained!

It should say "fainted".

ReferenceError: Move is not defined when pokemon has no move

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
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.