Skip to main content

gemini-pro-rpg

Interested in playing a dynamic role-playing game (RPG)? Gemini Pro RPG allows such feature with Gemini Pro integrated into the game! Experience dynamic game structure and storyline like never before!

Source Code

The source code of the game Gemini Pro RPG is available in Source Code.

Installation

pip install gemini-pro-rpg

How to Play the Game?

Pre-requisites:

  1. Python installed in your device.
  2. .env file in the same directory as <GEMINI_PRO_RPG_DIRECTORY> and has the value of GEMINI_API_KEY.
  3. The directory "saved" exists inside the directory <GEMINI_PRO_RPG_DIRECTORY>. Please create the "saved" directory if it has not existed in <GEMINI_PRO_RPG_DIRECTORY> directory yet.

First, open a Terminal or Command Prompt window and run the following commands.

cd <GEMINI_PRO_RPG_DIRECTORY>
python3 main.py

Note: Replace <GEMINI_PRO_RPG_DIRECTORY> with the path to the directory of the game Gemini Pro RPG.

Then, the game will start with something looking like in the screenshot below.

Application

You have two choices.

  1. Enter "NEW GAME" to play a new game.
  2. Enter "PLAY EXISTING GAME" to play an existing game.

New Game Creation

The following happens when you choose to create a new game.

New Game Input

You will then be asked to input the following values.

  1. Temperature - between 0 and 1 inclusive
  2. Top P - between 0 and 1 inclusive
  3. Top K - at least 1
  4. Max output tokens - at least 1
  5. Name of the new game
  6. Your name to be used as player name

You will then be directed to the main menu.

Playing Existing Game

You will only be able to play existing game if at least one or more saved game files are stored inside the "saved" directory.

The following happens when you choose to play an existing game.

Play Existing Game

You will then be asked to enter the name of the game you want to play (from the ones listed like in the screenshot above). 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 a battle. Else, your game data will be saved and you will exit the game.

Main Menu

Battle

During a battle, you will have two choices during your turn to make a move:

  1. Enter 'ATTACK' to attack the enemy.
  2. Enter 'FLEE' to exit the battle and return to the main menu.

Battle

If you either defeated the enemy or the enemy fled, you will level up between 1 and 100 times inclusive. If the enemy defeated you or you fled, you will not level up at all but your HP will be restored.

Note: Levelling up automatically restores your HP.

Progress

  1. Supports dynamic simple turn-based RPG on command-line interface (done)
  2. Supports dynamic complex turn-based RPG with items, levels, shops, resources, etc on command-line interface (pending)
  3. Supports dynamic player exploration RPG on command-line interface (pending)
  4. Supports custom RPG on command-line interface (pending)
  5. Supports dynamic graphical user interface RPG (pending)
  6. Supports Python for Unity (pending)

Version History

  1. Version 0.5 (Release Date: 28 December 2023):
  • Allows the player to play a dynamic simple turn-based RPG on command-line interface
  1. Version 1 (Release Date: TBA, 2024):
  • Allows the player to play a dynamic complex turn-based strategy RPG with items, levels, shops, resources, etc on command-line interface
  • Allows the player to play a dynamic player exploration RPG on command-line interface
  • Allows the player to play a customised and dynamic RPG based on the specifications he/she wants on command-line interface.
  1. Version 1.5 (Release Date: TBA, 2024):
  • Allows the player to play a dynamic graphical user interface RPG
  1. Version 2 (Release Date: TBA, 2024):
  • Supports Python for Unity

Release files for gemini-pro-rpg 1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gemini-pro-rpg 1.6
File Size Uploaded
gemini_pro_rpg-1.6.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gemini-pro-rpg 1.6
File Interpreter ABI Platform
gemini_pro_rpg-1.6-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / gemini_pro_rpg-1.6.tar.gz

Download URL gemini_pro_rpg-1.6.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ddfb1f30d29a63c050165cd78b66ba872d569ff253ce2015e28df3eef7c19556
BLAKE2b-256 checksum
How to use checksums
3826699a0457d01aac2aed6ea1b14649e0e3f0b66b568fb9217819e90ed1bf81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Release files / gemini_pro_rpg-1.6-py3-none-any.whl

Download URL gemini_pro_rpg-1.6-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd79c4db4bf1c4710b6a6b661351b7118f7e2340eb9986979269ef4f5a1cb89e
BLAKE2b-256 checksum
How to use checksums
4a8772f54ab82b2014ae8b552bd40c5cdcd112766c5bdc77a8812b04cc2b35d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Release history Release notifications | RSS feed

This release

1.6 This release

2 release files

1.5

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page