Skip to main content

A package for the Tangled game engine and support classes.

Project description

snowdrop-tangled-game-package

This repo contains base classes for the Tangled game and agents. It is also where the game graphs I use repeatedly are stored. While Tangled can be played on any connected graph, I selected some specific graphs to demonstrate certain aspects of the game. The game graphs exposed on the tangled-game.com website include the graphs here that I analyzed for the X-Prize Phase 1 Submission document, with an additional graph added (graph 5, the Petersen graph).

Game Graphs

The game_graph_ground_truth.py file contains a set of game graphs and game parameters for those graphs. The numbering on these is historical and doesn't make much sense, but I got used to it. To define a game graph, define the graph itself in the GRAPH_DATABASE dict, the vertex ownership choice in VERTEX_OWNERSHIP, the draw boundary for your graph in EPSILON_VALUES, and the anneal time for the quantum hardware in ANNEAL_TIMES. ALLOWED_GRAPHS is a filter to return only a subset of all the graphs. The current filter only returns the graphs in the X-Prize submission plus the Petersen graph.

Game Base Classes

Most of the other stuff here are base classes that you will subclass to build game playing agents and adjudicators in the snowdrop-tangled-agents and snowdrop-adjudicators repos respectively. In those repos I'll describe how this works. The three most important base classes are the Game and GameState classes in game.py and the GameAgentBase class in base_agent.py.

Project details


Download files

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

Source Distribution

snowdrop_tangled_game_engine-1.0.9.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snowdrop_tangled_game_engine-1.0.9-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file snowdrop_tangled_game_engine-1.0.9.tar.gz.

File metadata

File hashes

Hashes for snowdrop_tangled_game_engine-1.0.9.tar.gz
Algorithm Hash digest
SHA256 fd9f879635d5c20e34aafbe75182195da922344d23a9c893ab5d9484082507c3
MD5 7b7df799afa4a06ded78a16f80a39122
BLAKE2b-256 fdb8ad1a47fe83fb38b1ac849e32b9b2c35d2c443f4c12b12c5cf78bcbacd8cd

See more details on using hashes here.

File details

Details for the file snowdrop_tangled_game_engine-1.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for snowdrop_tangled_game_engine-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b584abaa1995c55909517d1b5334a618c48ae8d0b9e79639f42daf5cd3242ec3
MD5 02b9610f227a378d74d7c07b361e1219
BLAKE2b-256 f1cd3204301b6ae28f37ec097cc9d890eea121386b63f895b0835d1089560ff5

See more details on using hashes here.

Supported by

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