Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.11 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.11 KB

pokemon_battle

Pick two Pokemon and let them battle! Guess who wins.

Pokemon.py

  • Created a dictionary of Pokemon objects, with Pokemon name as keys
  • Loaded the dataset from pokemon.csv
  • Retrieved the two Pokemon objects from the dictionary
  • Calculated the total stats of each Pokemon
    • The stats were calculated by adding "HP, defense, special attack, special defense, speed"

pokemon_ui.py

  • Used tkinter for GUI
  • Created the main window, dropdown menu, button to start the battle
  • data was imported from simulate_battle and pokemon_dict
Screenshot 2024-03-28 at 10 16 11 AM Screenshot 2024-03-28 at 10 16 01 AM Screenshot 2024-03-28 at 10 16 38 AM

pokemon database from : https://gist.github.com/armgilles/194bcff35001e7eb53a2a8b441e8b2c6