Agents for the Tangled game
Project description
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!
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
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_agents-0.0.2.tar.gz.
File metadata
- Download URL: snowdrop_tangled_agents-0.0.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.12 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42812d63904448652ebb81e8c93f57c128ab49cd5265b768c57a48e5532d406c
|
|
| MD5 |
9be69164f0df6ea0d6c4170e6f07f3a3
|
|
| BLAKE2b-256 |
15caba42a582e7aeddb49e18322e4bfee35c3b0a6d8174c80b042d8f035413ce
|
File details
Details for the file snowdrop_tangled_agents-0.0.2-py3-none-any.whl.
File metadata
- Download URL: snowdrop_tangled_agents-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.12 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f1250076b9c4fe902fe8425ccb42a829823c562f2576e06b23f619e3939fa2
|
|
| MD5 |
118ae3a91a4b37419f63aca3a8e0aef1
|
|
| BLAKE2b-256 |
08018a6d318a7d18189dc9e6510471b084f650c012a6d1c960105a1b07e7f3fe
|