Skip to main content

This package contains implementation of a board game on command-line interface with Ollama AI integrated into it.

Project description

ollama_cli_board_game

Ollama CLI Board Game is a board game on command-line interface with Ollama AI integrated into it.

Source Code

The source code of the game Ollama CLI Board Game is available in Source Code.

Installation

pip install ollama_cli_board_game

How to Play the Game?

Pre-requisite:

The directory "saved" exists inside the directory <OLLAMA_CLI_BOARD_GAME_DIRECTORY>. Please create the "saved" directory if it has not existed in <OLLAMA_CLI_BOARD_GAME_DIRECTORY> directory yet.

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

cd <OLLAMA_CLI_BOARD_GAME_DIRECTORY>
python3 ollama_cli_board_game.py

Note: Replace <OLLAMA_CLI_BOARD_GAME_DIRECTORY> with the path to the directory of the game Ollama CLI Board Game.

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

Getting Started

You will need to enter the number of the LLM model you want to use. If the chosen LLM model is not yet installed on your machine, you will need to manually pull it to your machine. For reference on pulling an LLM model, you can refer to Ollama.

Once you chosen an LLM model which is already installed on your machine, the following will appear.

Game

You have two choices:

  1. Enter "NEW GAME" to create new saved game data.
  2. 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.

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.

Load 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.

Main Menu

Gameplay

Once you entered 'Y' when you were at the main menu, you will be redirected to gameplay. You can roll the dice when it is your turn. Moreover, places you land on can be purchased (if unowned) or acquired from AI player. Upgrades can be purchased and random rewards can be obtained from random reward tiles. You will just need to follow the instructions on the screen.

Gameplay

Project details


Release history Release notifications | RSS feed

This version

1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ollama_cli_board_game-1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

ollama_cli_board_game-1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file ollama_cli_board_game-1.tar.gz.

File metadata

  • Download URL: ollama_cli_board_game-1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ollama_cli_board_game-1.tar.gz
Algorithm Hash digest
SHA256 f29c2fd712ee0734edceefc6bdbb1807a78940fe6016e576ffb81439153b983d
MD5 4bfbeb95d3fe5690583b46842aa08b84
BLAKE2b-256 2a5b4d5517edd6d927ad3b13671d81051bebd569f84d35260188e7c7d88396eb

See more details on using hashes here.

File details

Details for the file ollama_cli_board_game-1-py3-none-any.whl.

File metadata

  • Download URL: ollama_cli_board_game-1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for ollama_cli_board_game-1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7452a007537955ea81094499623792b2480bb79a86da0d5c855ee16a8a2b8e8
MD5 0dea08f597d5d6cce2aea70c32cc3079
BLAKE2b-256 3646d8616cd9e0725c3896a7d4323161abb43051043f75ff4f6694877530d60a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page