StoryForge is an interactive text-based adventure game powered by AI, acting as a dynamic Dungeon Master.
-
Clone the repository:
git clone https://github.com/your-repo/StoryForge.git cd StoryForge
-
Create and activate a virtual environment:
python3 -m venv .venv source .venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables: Copy the
.env.template
file to.env
and fill in your API keys or other necessary configurations.cp .env.template .env # Open .env and add your GEMINI_API_KEY or other variables
To start the game, run the main.py
script:
python main.py
main.py
: The main entry point of the game.game/
: Contains core game logic, story management, player state, and AI interaction.utils/
: Utility functions for command handling, display, and file operations.saves/
: Directory for game save files.docs/
: Project documentation.tests/
: Unit tests for various modules.