os-poke-battle-arena
v1.1.2
Published
API sur le thème de pokemon !
Downloads
8
Readme
Pokemon Battle Arena
You always wanted to know which pokemon would win between the two random ones. With this API, you'll know everything!
Table of contents
Prerequisites
Installation
Clone the repository and install dependencies:
npm install os-poke-battle-arena
npm install os-poke-battle-arena
Usage
simulatePokemonBattle(createPokemonFromAPI);
Features
- Random Pokémon retrieval: Uses the PokeAPI to fetch random Pokémon.
- Pokémon abilities retrieval: Extracts Pokémon abilities from the PokeAPI.
- Pokémon battle simulation: Simulates battles between two Pokémon using their statistics and abilities.
Project Structure
os-poke-api/
│
├── src/
│ ├── getRandomPokemon.js
│ ├── getCapacity.js
│ ├── arenaBattle.js
│ ├── createPokemon.js
│ └── pokemon.js
├── test/
│ ├── getRandomPokemon.test.js
│ └── getPokemonCapacities.test.js
├── package.json
├── README.md
└── index.js
Tests
npm test
Contributing
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository
- Create a feature branch (git checkout -b feature/feature)
- Commit your changes (git commit -m 'Add some feature')
- Push to the branch (git push origin feature/feature)
- Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.