Adventure Game is a text-based adventure game written in Python using the instructor
library and OpenAI's GPT model. This project was developed in just a few hours due to limited free time.
This project includes a devcontainer configuration for Visual Studio Code. To use it:
-
Open the Project in VS Code: Open the project directory in Visual Studio Code.
-
Reopen in Container: When prompted, or by clicking on the green button in the bottom-left corner, select "Reopen in Container". This will build the container defined in
.devcontainer/Dockerfile
and set up the development environment. -
Install Dependencies: Once Poetry is installed, navigate to the project directory and run:
poetry install poetry shell
-
Run the Game: Start the game by running:
python3 main.py
-
Follow the Prompts: The game will guide you through various scenarios. Type your actions as prompted.
-
Exit the Game: Type
quit
when you want to exit the game.