Skip to main content

A terminal-based Pokémon battle simulator

Project description

Pokemon Battle Sim Python

A simple terminal-based Pokémon battle simulator built with Python.

https://github.com/user-attachments/assets/9cf1306f-e42e-413a-ada2-b77509518ead

Overview

This application lets you battle a randomly selected Pokémon opponent in your own terminal. It includes:

  • Real Pokémon Moves and Stats
  • Randomized Teams of Pokémon
  • Turn-based Attack System
  • Randomized Battle Music
  • Works Offline

Requirements

  • Python 3.13+
  • pypokedex
  • pygame
  • rich

Installation

Install from PyPI

pip install pokemon-battle-sim

Then run the game:

pokemon-battle-sim

Install from source

  1. Clone the repo:

    git clone https://github.com/your-user/pokemon-python.git
    cd pokemon-python
    
  2. Install in development mode:

    pip install -e .
    
  3. Run the game:

    pokemon-battle-sim
    

Running the game

If installed via pip:

pokemon-battle-sim

Or from the source directory:

python3 -m pokemon

Then enter 1 at the title screen to start.

Create a macOS app bundle

Build the macOS .app bundle and DMG from the project root:

chmod +x build_dmg.sh
./build_dmg.sh

The script creates:

  • dist/PokemonBattleSim.app
  • dist/PokemonBattleSim.dmg

TODO

  • Add a Pokémon switching system
  • Add more status effects

Disclaimer

All music and sound effects are owned by Pokémon.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pokemon_battle_sim-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file pokemon_battle_sim-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pokemon_battle_sim-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 918b77d45fd0fb4e293d959aab60259f46a4c6277b4912e9e20ff5e9cddb5953
MD5 b41024721dc4523a3bc64bde7c348549
BLAKE2b-256 92bdf2e4592ff237b7d3a9de4cca655b534019f160239efd96f576dbef423fa1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page