Package: pokemon-yeet-2ndbillingcycle
Pokemon YEETAn auto battling Pokémon cli game.This game was created as part of the2021 MASTERMND deCoded Journey sofware bootcamp:creating a Pokemon class (starts at 1:24:48)making it into a gameusing an APIInstallThis game is built withPython, which hasinstallation instructions here.Download the game withpip:pipinstall--user-Upokemon-yeet-2ndbillingcycleInstallation errorIfpipreturns an error like the following:...
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-h6qzslht/setup.py'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-h6qzslht/pipis out of date, and needs to be updated:pipinstall--user--upgradepipPlayWith the gameinstalled, run the commandpokemon-yeetto play:$ pokemon-yeet
...
Downloading pokemon #151
Pokemon data downloaded
get ready, now recruiting your team of pokemon!


team selected! meet your new team
omastar: HP: 70 TYPE: rock
nidoking: HP: 81 TYPE: poison
tentacool: HP: 40 TYPE: water


now recruiting the enemy team!


team selected! meet your enemies!
kakuna: HP: 45 TYPE: bug
nidorino: HP: 61 TYPE: poison
venomoth: HP: 70 TYPE: bug
PREPARE TO FIGHT!!!!!
omastar attacked with scratch and it did 35 damage
kakuna: HP: 10 TYPE: bug
kakuna attacked with leer and it did 20 damage
omastar: HP: 50 TYPE: rock
omastar attacked with tackle and it did 10 damage
kakuna: HP: 0 TYPE: bug
kakuna has FAINTED
kakuna: HP: 0 TYPE: bug
THE SCORE IS: ME:1 ENEMY:0
nidoking attacked with cut and it did 25 damage
nidorino: HP: 36 TYPE: poison
nidorino attacked with cut and it did 25 damage
nidoking: HP: 56 TYPE: poison
nidoking attacked with tackle and it did 10 damage
nidorino: HP: 26 TYPE: poison
nidorino attacked with leer and it did 20 damage
nidoking: HP: 36 TYPE: poison
nidoking attacked with cut and it did 25 damage
nidorino: HP: 1 TYPE: poison
nidorino attacked with tackle and it did 10 damage
nidoking: HP: 26 TYPE: poison
nidoking attacked with leer and it did 20 damage
nidorino: HP: -19 TYPE: poison
nidorino has FAINTED
nidorino: HP: -19 TYPE: poison
THE SCORE IS: ME:2 ENEMY:0
tentacool attacked with tackle and it did 10 damage
venomoth: HP: 60 TYPE: bug
venomoth attacked with cut and it did 25 damage
tentacool: HP: 15 TYPE: water
tentacool attacked with leer and it did 20 damage
venomoth: HP: 40 TYPE: bug
venomoth attacked with tackle and it did 10 damage
tentacool: HP: 5 TYPE: water
tentacool attacked with leer and it did 20 damage
venomoth: HP: 20 TYPE: bug
venomoth attacked with leer and it did 20 damage
tentacool: HP: -15 TYPE: water
tentacool has FAINTED
tentacool: HP: -15 TYPE: water
THE SCORE IS: ME:2 ENEMY:1
WE WON HAHAHAHAHAHAHAHAHAHAHAHAnote: runningpokemon-yeetwill create a directory to store information about PokémonDevelopmentThis repository can be downloaded withgit(a mastermndio video aboutgit). Once that's done,create a virtual environment in the same directory:python-mvenvvenvnote: depending on howPythonwas installed,pythonmay bepython3, andvenvmay need to be downloaded separately (e.g. aspython3-venv)This creates a directory calledvenvin the current directory.Then, activate the virtual environment. On Linux, this looks like:.venv/bin/activateMake surepipinside the virtual environment is up to date:pipinstall--upgradepipThen, install the game in the virtual environment:pipinstall./And you're ready to go! Change some files, re-install, and run again!PackagingFlitis used to package and upload the game.To upload your own version, change the information in [pyproject.toml][flit pyproject.toml]:dist-name: replace2ndbillingcyclewith your usernameauthor: your nameauthor-email: your emailhome-page: either put the link to your GitHub fork, or remove this lineThen, installFlitand build the distribution files. With the virtual environment activated:pipinstall--upgradeflit
python-mflitbuildThen, followthe official Python packaging guidefor uploading the package to theTest Python Package Index.Alternatively, you can [create an API token on PyPI with a scope for "Entire account"][api token], and runflit publish, pasting the created API token for the password.API dependenciesThis game useshttps://pokeapi.co/to get information about Pokémon.