Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Python code to assist the game Olympia

Project Description

olypy is a collection of code related to the game Olympia, which currently lives in SVN (yuck) at

olypy supports:

  • Generating a game database for testing the Olympia code
  • Actual end-to-end tests of the Olympia code
  • Generating a game database from player turn output to support simulations for players


Install python 3.4 or better, using pyenv or your favorite equivalent.

Clone the repo.

Install dependent python modules, and see if olypy passes tests:

python -m pip install -r requirements.txt
make test

Generating the QA database

make defaultlib

Running Olympia tests

You need a compiled Olympia binary with support for the ‘assert’ command.

cd sim; python

Tests are YAML files. Here’s an example:

description: test move-related things
lib: defaultlib
aa1 orders: |
 unit 1102  # A2 in Aachen [c18]
   # test movement delays
   claim 10 20
   assert item 10 20 not item 10 21 # exactly 20
   move out # 2 days
   assert day 3 not day 4
   drop 10 1
   move c18
   assert day 4 not day 5

This example contains 3 tests. assert is similar to wait; it passes if the wait is 0-time, and fails elsewise. The foo not foo syntax is a way of expressing exact values.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
olypy-0.9.13-py3-none-any.whl (53.9 kB) Copy SHA256 Checksum SHA256 py3 Wheel Feb 1, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting