#Pokemon Battle Game This is a React project that allows users to play a Pokemon battle game. The game fetches data from the Pokemon API (https://assets.pokemon.com/assets/cms2/img/pokedex/detail/${id}.png) to generate four random Pokemon cards for each player. Each card includes a Pokemon image, type, and experience points (exp).
How to Play To play the game, follow these steps:
Clone the repository to your local machine using the following command: shell Copy code git clone https://github.com/your-username/pokemon-battle-game.git Navigate to the project directory: shell Copy code cd pokemon-battle-game Install the required dependencies using npm or yarn: shell Copy code npm install or
shell Copy code yarn install Start the development server: shell Copy code npm start or
shell Copy code yarn start Open your browser and visit http://localhost:3000 to view the game.
The game will automatically generate four random Pokemon cards for each player, assigning random types and experience points to each Pokemon.
The battle begins! Each player selects a card to play for each round. The player with the highest total experience points wins the round. The game will calculate and display the scores after each round.
Play additional rounds until the game declares a winner.
Technologies Used This project utilizes the following technologies:
React: A JavaScript library for building user interfaces. Axios: A promise-based HTTP client for making API requests. React Bootstrap: A popular front-end framework for building responsive web applications. Pokemon API: The Pokemon API used in this project is hosted at https://assets.pokemon.com/assets/cms2/img/pokedex/detail/. It provides the Pokemon images for the game. Directory Structure The project's directory structure is organized as follows:
Contributing Contributions to this project are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository. Feel free to fork the repository and submit pull requests to contribute code changes.
License This project is licensed under the MIT License. You are free to use, modify, and distribute the code as per the terms of this license. See the LICENSE file for more details.
Acknowledgments This project utilizes the Pokemon API hosted at https://assets.pokemon.com/assets/cms2/img/pokedex/detail/ to fetch Pokemon images. Special thanks to the contributors of React, Axios, and React Bootstrap for their excellent libraries. Shoutout to the Pokemon franchise for providing endless inspiration! Enjoy the game, and may the best Pokemon trainer win!