Skip to main content

A turn-based Pokémon battle game with ASCII art.

Project description

pypokemon

Build Status


Project Description

pypokemon is a terminal-based Pokémon battle game featuring ASCII art, interactive gameplay, and a fun "Lucky Pokémon" feature. Players can select Pokémon and engage in simulated battles with simple commands.


PyPI Package

pypokemon on PyPI


Importing and Using pypokemon in Your Code

Developers can import and use pypokemon functions in their own projects.

Available Functions & Examples

1. show_pokemon()

Displays ASCII art and stats of all Pokémon.

from pypokemon import show_pokemon
show_pokemon()

2. select_pokemon()

Interactive Pokémon selector.

from pypokemon import select_pokemon
p1, p2 = select_pokemon()
print(f"You selected {p1} and {p2}")

3. battle(pokemon1, pokemon2)

Simulate a battle between two Pokémon.

from pypokemon import battle
battle("Charizard", "Blastoise")

4. luckypokemon()

Randomly selects and displays a lucky Pokémon.

from pypokemon import luckypokemon
print(luckypokemon())

Example Program


Developer Setup Guide

Follow these steps to contribute to pypokemon:

  1. Clone this repository:
git clone https://github.com/software-students-spring2025/3-python-package-ez-squad-3-0.git
cd 3-python-package-ez-squad-3-0
  1. Set Up a Virtual Environment:
pipenv shell
  1. Install Dependencies:
pip install -e .[dev]
  1. Run Tests:
pytest
  1. Install Build Tools:
pip install build twine
  1. Build Package:
python -m build

Team Members

Name NYU Email GitHub Profile
Chen Jun Hsu ch4356@nyu.edu Junpapadiamond
Kenny Pan zp2165@nyu.edu kenny-pan
Shenrui Xue sx2218@nyu.edu ShenruiXue666
Eric Zhao zz4040@nyu.edu Ericzzy675

Setup Instructions for Any User Any Platform

This project is designed to run on any operating system (Windows, macOS, Linux) with Python 3.7+. Follow these exact steps to configure and run pypokemon:

  1. Install pypokemon:
pipenv shell #Linux user
pip install pypokemon
  1. Run the Game:
pypokemon
# or
python -m pypokemon

Environment Variables & Starter Data

This project does not require any environment variables or a database.

Secret Configuration Files

This project does not require any environment variables or a database.

Project details


Download files

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

Source Distribution

pypokemon-0.1.4.tar.gz (49.0 kB view details)

Uploaded Source

Built Distribution

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

pypokemon-0.1.4-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file pypokemon-0.1.4.tar.gz.

File metadata

  • Download URL: pypokemon-0.1.4.tar.gz
  • Upload date:
  • Size: 49.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pypokemon-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b32a4356bf52d8e92e044147df77b70ca2b567c8e3a0a7407887d1d07a1f5b0b
MD5 4a8a9e8da4dd0cf71ca78f5b33d3de26
BLAKE2b-256 7e5fd49f22dc2f34b8c5d7afc3bb7e97ca475cabc2bf5b49af4e330c2820ce90

See more details on using hashes here.

File details

Details for the file pypokemon-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pypokemon-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pypokemon-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 be15a96c777fd61d17e6e6041e1de1ba500a7c09229fe72216561da817d13e82
MD5 169565446776a4850b8716e54ca22b80
BLAKE2b-256 05d76e3abc7141724d2f57a55ed38e6fd95b57adbf44035a5e96a130ae7f97ef

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