This project is a text-based game called Mysterious Mansion, built in Python. It's a part of the gptlife
package, which is a collection of games and utilities.
The project is structured as follows:
gptlife/
: The main package directory.agents/
: Contains classes related to game agents, including their personalities.games/
: Contains the main game logic and specific game implementations.mystery_mansion/
: Contains the specific implementation for the Mysterious Mansion game.
setup.py
: The setup script for the package..gitignore
: Specifies which files and directories to ignore in git..pre-commit-config.yaml
: Configuration for pre-commit hooks.
gptlife/agents/agent.py
: Defines the base agent class.gptlife/agents/personality.py
: Defines the personality of agents.gptlife/games/game.py
: Defines the abstract game class.gptlife/games/mystery_mansion/mystery_mansion.py
: The main game file for Mysterious Mansion.
To run the game, execute the main.py
file in the gptlife
directory.
python gptlife/main.py
Contributions are welcome! Please read the contributing guidelines before making any changes.
This project is licensed under the terms of the MIT license.