https://github.com/piyushsachdeva/python-ai-space-exploration-game
https://github.com/piyushsachdeva/python-ai-space-exploration-game
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/piyushsachdeva/python-ai-space-exploration-game
- Owner: piyushsachdeva
- Created: 2023-12-18T16:27:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T05:19:17.000Z (over 2 years ago)
- Last Synced: 2025-04-01T13:46:04.968Z (over 1 year ago)
- Language: Python
- Size: 357 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python-Based AI Space Simulator Game
Welcome to the Python-based AI Space Simulator Game! This interactive text-based adventure allows players to guide a space traveler named Nova on a quest to find the legendary Star Crystal. The game dynamically adapts to players' decisions, creating a branching narrative with various outcomes.
## Architectural Diagram 🏛️

## Prerequisites
Before getting started, ensure you have the following:
- Python 3.7 or higher
- OpenAI API Key
- DataStax Astra Database (Cassandra DB)
## Installation
### 1. Install dependencies
```bash
pip3 install cassandra-driver openai langchain cassio
```
### 2. Replace variables
Replace the following variables in `tutorial.py` with your values:
- `OPENAI_API_KEY` with your OpenAI API Key.
- `ASTRA_DB_KEYSPACE` with your Astra DB Keyspace.
- `secure-connect-file.zip` with the zip file name you downloaded from Astra DB.
- `connect-token.json` with the JSON file name you downloaded from Astra DB.
### 3. Run the program
```bash
python3 tutorial.py
```