Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bukinoshita/pokemon-f
Algorithm to calculate `f` on capture pokemon method.
https://github.com/bukinoshita/pokemon-f
algorithm capture javascript node pokemon
Last synced: 20 days ago
JSON representation
Algorithm to calculate `f` on capture pokemon method.
- Host: GitHub
- URL: https://github.com/bukinoshita/pokemon-f
- Owner: bukinoshita
- License: mit
- Created: 2017-06-28T17:57:49.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T01:54:14.000Z (almost 2 years ago)
- Last Synced: 2024-10-20T06:19:28.304Z (27 days ago)
- Topics: algorithm, capture, javascript, node, pokemon
- Language: TypeScript
- Homepage:
- Size: 1.59 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# pokemon-f [![Build Status](https://travis-ci.org/bukinoshita/pokemon-f.svg?branch=master)](https://travis-ci.org/bukinoshita/pokemon-f)
> Algorithm to calculate `f` on capture pokemon method
## Install
```
$ yarn add pokemon-f
```## Usage
```js
import { pokemonF } from 'pokemon-f'pokemonF(35, 'pokeball', 23)
// => 129
```## API
### pokemonF(hpMax, pokeball, hpCurrent)
#### hpMax
Type: `number`
RequiredPokemon HPMax
#### pokeball
Type: `string`
Options: `pokeball`, `greatball`, `ultraball` and `safariball`
RequiredPokeball's name
#### hpCurrent
Type: `number`
RequiredPokemon current HP
## Related
- [pokemon-game](https://github.com/bukinoshita/pokemon-game) — Pokemon game — Get 'em all
- [pokedex-api](https://github.com/bukinoshita/pokedex-api) — Pokedex API
- [pokemon-catch-probability](https://github.com/bukinoshita/pokemon-catch-probability) — Check probabilty to catch a pokemon
- [get-pokeball](https://github.com/bukinoshita/get-pokeball) — Get pokeball information
- [catch-pokemon](https://github.com/bukinoshita/catch-pokemon) — Algorithm to catch a pokemon
- [pokemon-capture-quote](https://github.com/bukinoshita/pokemon-capture-quote) — Pokemon capture quote
- [pokeball-shake](https://github.com/bukinoshita/pokeball-shake) — Algorithm to determine how many times pokeball shakes## License
MIT © [Bu Kinoshita](https://bukinoshita.com)