A virtual pet companion CLI application
Project description
e-pet
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file e_pet-0.3.tar.gz.
File metadata
- Download URL: e_pet-0.3.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11ab7ef03f349e3102beb5c600bc2ef04fdd738e7ceb146a40ef61156b6247f7
|
|
| MD5 |
7d3e2033b690c3c8c266abaad313e60d
|
|
| BLAKE2b-256 |
dc2325e988ce8eb4d84800f1e94473bdbf25d6381be846302ceca17120b0d586
|
Provenance
The following attestation bundles were made for e_pet-0.3.tar.gz:
Publisher:
pypi.yml on athuler/e-pet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
e_pet-0.3.tar.gz -
Subject digest:
11ab7ef03f349e3102beb5c600bc2ef04fdd738e7ceb146a40ef61156b6247f7 - Sigstore transparency entry: 264497006
- Sigstore integration time:
-
Permalink:
athuler/e-pet@a60672d18ce0f518b981514ba5bb57d1af7103a8 -
Branch / Tag:
refs/tags/v0.3 - Owner: https://github.com/athuler
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@a60672d18ce0f518b981514ba5bb57d1af7103a8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file e_pet-0.3-py3-none-any.whl.
File metadata
- Download URL: e_pet-0.3-py3-none-any.whl
- Upload date:
- Size: 41.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a311266a944bd9a62dfec720b3c9e034640bb2123ce31076dc20d3ea321ef154
|
|
| MD5 |
40dd18c6772110b456a7a5f358d05689
|
|
| BLAKE2b-256 |
e2b3c6187c6f27f9ab84135ab6b3fcb4ecc3cfe003b61d15d5897556b1c594d2
|
Provenance
The following attestation bundles were made for e_pet-0.3-py3-none-any.whl:
Publisher:
pypi.yml on athuler/e-pet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
e_pet-0.3-py3-none-any.whl -
Subject digest:
a311266a944bd9a62dfec720b3c9e034640bb2123ce31076dc20d3ea321ef154 - Sigstore transparency entry: 264497013
- Sigstore integration time:
-
Permalink:
athuler/e-pet@a60672d18ce0f518b981514ba5bb57d1af7103a8 -
Branch / Tag:
refs/tags/v0.3 - Owner: https://github.com/athuler
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@a60672d18ce0f518b981514ba5bb57d1af7103a8 -
Trigger Event:
release
-
Statement type: