A Beginner Level Python project to outline the flow of a project as well as use of modules and functions.
Pokemon battle simulator based on real up-to-date strength and weakness charts. We use the Random() module as well as multiple custom functions to make difficult tasks easier by breaking them into individual parts.
- How to Play this game
- What does this project do?
- Pokemon Type Chart (Strengths/Weaknesses)
- Ways to Improve
- Download the POKEMON_PKG and move to an accessible folder.
- Open your terminal, bash., etc. and change directory to the POKEMON_PKG folder.
- Type:
python pokemon_game.py - Enjoy!!
- Ask if you'd like to play the Pokemon game or quit.
- Displays Pokemon types and ask you to input a single choice of type.
- The computer opponent picks thier own type at random.
- A winner is selected based on each types strenghs and weakness and does a coin flip if player and opponent are equal to each other.
- Results are saved and ask if you'd like to see the results.
- Ask if you'd like to play the Pokemon game again or quit.
| Type(18) | Strong Against | Weakness |
|---|---|---|
| Bug | Grass, Dark, Psychic | Fire, Flying, Rock |
| Dark | Ghost, Psychic | Bug, Fairy, Fighting |
| Dragon | Dragon | Dragon, Fairy, |
| Electric | Flying, Water | Ground |
| Fairy | Fighting, Dark, Dragon | Poison, Steel |
| Fighting | Dark, Ice, Normal, Rock, Steel | Fairy, Flying, Psychic |
| Fire | Bug, Grass, Ice, Steel | Ground, Rock, Water |
| Flying | Bug, Fighting, Grass | Electric, Ice, Rock |
| Ghost | Ghost, Psychic | Dark, Ghost |
| Grass | Ground, Rock, Water | Bug, Fire, Flying, Ice, Poison |
| Ground | Electric, Fire, Poison, Rock, Steel | Grass, Ice, Water |
| Ice | Dragon, Flying, Grass, Ground | Fighting, Fire, Rock, Steel |
| Normal | -- | Fighting |
| Poison | Fairy, Grass | Ground, Psychic |
| Psychic | Fighting, Poison | Bug, Dark, Ghost |
| Rock | Bug, Fire, Flying, Ice | Fighting, Grass, Ground, Steel, Water |
| Steel | Fairy, Ice, Rock | Fighting, Fire, Ground |
| Water | Fire, Ground, Rock | Electric, Grass |
- Neutral matchups will be determined via Coin Flip
- I could have used python class to tighten the code work for defining the strengths and weaknesses for more concise code.
- I can apply the core of the code to a web app and add more visual aspects to it so it's not just playable from the console.
I do not own Pokemon, a Nintendo brand.# Pokemon_Battle_Simulater