Skip to main content

A virtual pet companion CLI application

Project description

e-pet

PyPI - Version Pepy Total Downlods

A CLI Virtual Pet Companion

Installation

pip install e-pet

Local installation:

pip install .

Usage

When installed using pip:

e-pet

Local development:

python e-pet.py

Interface

The CLI interface should be an ASCII art/animation of the pet, and below various actions that the user can select. The user should be able to select the option they would like to go for using arrow keys (the selected option is highlighted) and then pressing enter, or by selecting the corresponding option number on their keyboard.

Game Mechanics

The pet has the following attributes:

  • name (randomly generated; can be re-generated at any time by the user)
  • age (starts at 0, increases as the user plays)
  • sex (M, F, ??; randomly assigned, can be re-generated at any time by the user)
  • Health (between 0 and 5)
  • Happiness (between 0 and 5)
  • Despair (between 0 and 5)
  • Wealth (unbounded number, starts at 100)

The user can interact with the pet in the following main ways:

  • Feeding
  • Playing
  • Talking

Each option has many different dialog trees. The dialog trees are stored as JSON files. Throughout the dialog trees, selecting various options may have effects on any of the pet's attributes (health, ahppiness, ...). There may be multiple possible outcome at any point of a tree, in which case randomness is used to determine which path to let the user continue on.

Architecture

Game data is saved in a JSON file in the current directory. When starting, the app looks for a current save, if it doesn't find one it creates a new one. The game auto-saves after each action.

The app runs as a Python application without internet connection.

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

e_pet-0.2.1.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

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

e_pet-0.2.1-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

Details for the file e_pet-0.2.1.tar.gz.

File metadata

  • Download URL: e_pet-0.2.1.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for e_pet-0.2.1.tar.gz
Algorithm Hash digest
SHA256 71af9a2884061ab87650133a7c3f57cda8d09cad48b237842a8e72aa0b8f9c51
MD5 2f9aadbf9671b54a74f27825e09f98a8
BLAKE2b-256 e94504f8a44bcb2e6f3e6bda3326184ac355e17a17034246566455de6aefff55

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_pet-0.2.1.tar.gz:

Publisher: pypi.yml on athuler/e-pet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file e_pet-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: e_pet-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 41.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for e_pet-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4092ceb5a0856a82e9fb48d0c1b2cbf90bfebe34b7f507803b4e7069de1aab2
MD5 f32cb28987969fa6c751ff34680d2933
BLAKE2b-256 8faf5d8cbffe2fafbe7500a1749bf21508bbf97d61504593a5a5b2f60aa1be49

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_pet-0.2.1-py3-none-any.whl:

Publisher: pypi.yml on athuler/e-pet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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