Skip to main content

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.

Metadata

Release files for snowdrop-tangled-game-engine 1.1.0

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

Source distribution (sdist)

Source distribution for snowdrop-tangled-game-engine 1.1.0
File Size Uploaded
snowdrop_tangled_game_engine-1.1.0.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snowdrop-tangled-game-engine 1.1.0
File Interpreter ABI Platform
snowdrop_tangled_game_engine-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / snowdrop_tangled_game_engine-1.1.0.tar.gz

Download URL snowdrop_tangled_game_engine-1.1.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
03c6196a249b09ba75cbc0b2a8f78a73c4d21d57b654b716b3af98716b6e384b
BLAKE2b-256 checksum
How to use checksums
253c2f9e35e75737127597cc0ae355bb6fa2f3bc7c2b179f52927b4cc492cc09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.10.7 Windows/10

Release files / snowdrop_tangled_game_engine-1.1.0-py3-none-any.whl

Download URL snowdrop_tangled_game_engine-1.1.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f1a1cdd567066f72b2e4d804dffe371e9f2e7123bfceb0c6080019e4fc33c12
BLAKE2b-256 checksum
How to use checksums
54fec2d6b45cd68cbd636b2af8da9f4e65c54ce1869978ec86400426b313126d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.10.7 Windows/10

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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