Skip to main content

snowdrop-tangled-agents

A place to build and test agents for playing Tangled!

How to build your own agent

This repo includes a random agent (see RandomRandyAgent in random_agent.py). To build your own agent, follow the instructions and pattern for that agent. The process is straightforward - your agent gets a Game instance as input/observable, which is a snapshot of the current game being played which includes the current state of the game, and you output an action/move. The move is just which edge to pick, and what color to apply to it. That's all! Obviously the underlying process you use to select this move can be arbitrarily complex but the actual agent interface is simple.

Testing agents

A test script is included in run_local_parallel_tournament.py. Out of the box it runs 100,000 games for each of the X-Prize graphs (not including the mutant C60 graph) where the adjudicator used is simulated annealing, and the two agents in the competition are both random agents.

Suggested next steps

If you want to build your own agent, I would start by building your own adjudicator (look at both the adjudicators in the snowdrop-adjudicators repo). The better you can spoof the D-Wave hardware, the better quality reward your agent will have to learn from. To do this, I would recommend you build a look-up table adjudicator, by first enumerating all the terminal states for a small game graph, and then adjudicating all of them using the schrodinger equation adjudicator (this will be limited to small game graphs, but it's still a great warm-up for doing something more ambitious). Once you have your lookup table adjudicator, you can then build an agent that uses it to give you the correct answer every time. You can use run_local_parallel_tournament.py - add your adjudicator and new agents to and see how well they do against the random agent and any other agents you might have built!

Metadata

Release files for snowdrop-tangled-agents 0.0.5

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-agents 0.0.5
File Size Uploaded
snowdrop_tangled_agents-0.0.5.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snowdrop-tangled-agents 0.0.5
File Interpreter ABI Platform
snowdrop_tangled_agents-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / snowdrop_tangled_agents-0.0.5.tar.gz

Download URL snowdrop_tangled_agents-0.0.5.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7637d87cc706237eb1df4718e6ec55f2c81cfdbae0f9110e9d0f289481cdc3c6
BLAKE2b-256 checksum
How to use checksums
4b6109855dc57ea1dc0f7a142e0954c18be1b8aed8b3cac2c1970fc514942dde
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_agents-0.0.5-py3-none-any.whl

Download URL snowdrop_tangled_agents-0.0.5-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
382ba7fbaf99c142bde5023ef33919fbb9f247c21b0f38924dcc8dc68606861d
BLAKE2b-256 checksum
How to use checksums
1aa45b09cea880a716025824e78e038079b2225596f0769ddaaa484681b1652c
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

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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