Welcome to the BingDungeon! This is an AI-powered emojy-based adventure game where you can create and explore unique thingies.
-
Ensure you have Python 3.7+ installed on your system.
-
Clone this repository:
git clone https://github.com/furlat/bing-dungeon.git cd bing-dungeon
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Set up your Anthropic API key:
- Create a file named
.env
in the project root directory - Add your Anthropic API key to the file:
ANTHROPIC_API_KEY=your_api_key_here
- Create a file named
-
Start the game server:
python main.py
-
Open your web browser and go to
http://localhost:5001
-
Generate an Adventure:
- On the home page, enter a theme or idea for your adventure in the text box.
- Click "Generate Adventure" to create a unique adventure based on your input.
- Review the generated adventure details, including the title, setting, objective, challenges, key locations, and NPCs.
-
Start the Adventure:
- Click "Start Adventure" to begin playing.
-
Gameplay:
- You'll see a description of your current situation and a 6x6 grid representing your environment.
- Type your actions into the text box (e.g., "move north", "examine the statue", "talk to the merchant").
- Click "Submit" or press Enter to perform your action.
- The AI will process your action and update the game state, providing a description of what happens.
-
Navigation:
- Your character is represented by a 🤺 emoji on the grid.
- Other emojis represent different elements in the environment (e.g., 🌳 for trees, 🏠 for buildings).
-
Continue Playing:
- Keep entering actions to progress through the adventure.
- Try to achieve the main objective while overcoming challenges and interacting with NPCs.
-
Start Over:
- Click the "Restart" button at any time to return to the home page and generate a new adventure.
Enjoy your unique, AI-generated adventure!