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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snowdrop_tangled_game_engine-1.1.0.tar.gz.
File metadata
- Download URL: snowdrop_tangled_game_engine-1.1.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03c6196a249b09ba75cbc0b2a8f78a73c4d21d57b654b716b3af98716b6e384b
|
|
| MD5 |
663bcd31c399104c42fdac0e23b14529
|
|
| BLAKE2b-256 |
253c2f9e35e75737127597cc0ae355bb6fa2f3bc7c2b179f52927b4cc492cc09
|
File details
Details for the file snowdrop_tangled_game_engine-1.1.0-py3-none-any.whl.
File metadata
- Download URL: snowdrop_tangled_game_engine-1.1.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f1a1cdd567066f72b2e4d804dffe371e9f2e7123bfceb0c6080019e4fc33c12
|
|
| MD5 |
8844a2aa73fc63877aab9492c35b57cb
|
|
| BLAKE2b-256 |
54fec2d6b45cd68cbd636b2af8da9f4e65c54ce1869978ec86400426b313126d
|