Ice Orb
Open-Ended Wargames with Large Language Models
Ice Orb uses large language models (LLMs) for automated play of "open-ended" text-based wargames, such as seminar games and political wargames. LLMs enable a light, flexible architecture in which player actions are not restricted to predefined options. The system allows humans to play against or alongside AI agents with specific personas. Every stage of the wargame from scenario preparation to post-game analysis can be optionally carried out by AI, humans, or a combination thereof.
Ice Orb is based on Snow Globe, which is described here.
Installation
Build the Docker image and run a container.
./docker_setup.sh
Or, install Ice Orb from PyPI. For CPU only:
pip install iceorb
For GPU support:
CMAKE_ARGS="-DGGML_CUDA=on" pip install iceorb
AI Simulations
After installation, you can simulate a tabletop exercise about an AI incident response.
examples/haiwire.py
Or, simulate a political wargame about a geopolitical crisis.
examples/ac_sim.py
Human+AI Wargames
To play a game between a human and an AI player, launch the server and start a game:
iceorb_server &
examples/ac_game.py
Then, open a browser window and navigate to:
http://localhost:8000
The terminal output will begin with the ID number for the human player. Type that number into the ID box in the browser window and click Log In.
Make sure to run iceorb_server from the same file system location where you run the game. Game-related files will be stored in that location.
Custom Games
By default, Ice Orb uses a light LLM that runs locally. For better results, try the OpenAI API:
- Create an environment variable called
OPENAI_API_KEYwith your OpenAI API key in it. In a bash shell, for example:export OPENAI_API_KEY=your0key0here - In the example game you want to use with OpenAI, find the line that says
super().__init__()and change it to this:super().__init__(source='openai', model='gpt-4o')or similarly for whatever model you want to try.
Beyond that, you can use the examples as starting points for developing your own games, or you can create entirely new game formats using the Python classes provided by Ice Orb.
License
This repo is released under the Apache License Version 2.0, except for jQuery which is released under the MIT License.
Metadata
Release files for iceorb 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iceorb-1.1.0.tar.gz | 159.3 kB | Without provenance | Details for iceorb-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iceorb-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for iceorb-1.1.0-py3-none-any.whl |
Total release size: 317.3 kB
Release files / iceorb-1.1.0.tar.gz
| Download URL | iceorb-1.1.0.tar.gz |
|---|---|
| Size | 159.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
199015fe38a0c3a6073e8b1c7f8fc231713398d4b91363030a94a81e0eabd256
|
|
BLAKE2b-256 checksum How to use checksums |
55fb848a9f4762b5f2dd54caf22d075192e712e23e97156e335db1cf51ff23f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / iceorb-1.1.0-py3-none-any.whl
| Download URL | iceorb-1.1.0-py3-none-any.whl |
|---|---|
| Size | 157.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af742e3c6a9f6c6fd651d69e164d3ed2a80a6d4b69ce0b2933b76dc1401478fc
|
|
BLAKE2b-256 checksum How to use checksums |
da8e2d69b6bbf66d1e9d1fc82fc6decc639b5a98adb274b54a52778ee9a11acc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for iceorb 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.