This package contains implementation of an adventure game on command-line interface with Google Gemini AI integrated into it.
Project description
gemini_cli_planet_adventure
Gemini CLI Planet Adventure is an adventure game on command-line interface with Google Gemini AI integrated into it.
Game Features
- Exploration of AI generated cities
- AI generated missions
- Turn-based battles between players
Source Code
The source code of the game Gemini CLI Planet Adventure is available in Source Code.
Installation
pip install gemini_cli_planet_adventure
How to Play the Game?
Pre-requisites:
- Python installed in your device.
- env file in the same directory as <GEMINI_CLI_PLANET_ADVENTURE_DIRECTORY> and has the value of GEMINI_API_KEY.
- The directory "saved" exists inside the directory <GEMINI_CLI_PLANET_ADVENTURE_DIRECTORY>. Please create the "saved" directory if it has not existed in <GEMINI_CLI_PLANET_ADVENTURE_DIRECTORY> directory yet.
First, open a Terminal or Command Prompt window and run the following commands.
cd <GEMINI_CLI_PLANET_ADVENTURE_DIRECTORY>
python3 gemini_cli_planet_adventure.py
Note: Replace <GEMINI_CLI_PLANET_ADVENTURE_DIRECTORY> with the path to the directory of the game Gemini CLI Planet Adventure.
Then, the game will start with something looking like in the screenshot below.
You have two choices:
- Enter "NEW GAME" to create new saved game data.
- Enter "LOAD GAME" to load existing saved game data.
New Saved Game Data Creation
The following happens if you choose to create new saved game data.
You will be asked to enter the player name.
You will then be directed to the main menu.
Loading Existing Saved Game Data
You will only be able to load existing saved game data if at least one or more saved game files are stored inside the "saved" directory.
The following happens when you choose to load existing saved game data.
You will then be asked to enter the name of the player associated with the existing saved game data you want to load. After that, your saved game data will be loaded and you will be directed to the main menu.
Main Menu
Once you reach the main menu, you will be asked whether you want to continue playing the game or not. If you enter 'Y', you will be directed to choose an action. Else, your game data will be saved and you will exit the game.
Action Choice
Once you entered 'Y' when you were at the main menu, you will be redirected to action choice. At the top of the command-line window, you will see the map of the city you are in (together with your current location). Below the map, you will see the available actions you can choose to do. Battles against wild legendary creatures or trainers might occur if you enter "1" and then select the direction you want to move to.
Then, you will need to follow the instructions on the screen, for whichever action you choose to do.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gemini_cli_planet_adventure-1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26c32f902f328c86c21fa5be4ded01997f2b03563e3b0b852b133c2dd9e12dbd |
|
MD5 | da4d9284ccc88db5b9b6ea84d505a393 |
|
BLAKE2b-256 | 8ad16f2e20057c556075c8de69f5fd10cc41eb25169451d12f543044c98c2088 |
Hashes for gemini_cli_planet_adventure-1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5904b4b697b61c96c648dd4034ca438aeb17b192e3f43dc36462d17dfcb1057d |
|
MD5 | 8e4d306646c26373636b9103793c35ac |
|
BLAKE2b-256 | 865660c365b6df8b8600dcea12a2c1c628eef530702e9c45ae45deba5b46ae84 |