Tile Matching Reinforcement Learning Environments
Welcome to the Reinforcement Learning Environments for Tile Matching Games repository! Here you can find a collection of tile matching game environments (like Bejeweled or Candy Crush), poised to push reinforcement learning research forwards.
This genre of games is characterised by the following features, which we find useful for reinforcement learning research:
- Large action spaces
- Intuitive action hierarchies
- Procedurally generated levels
- Structured complex stochasticity in transition dynamics
Installation
You can install the package via pip:
pip install tile-match-gym
Example Usage
We follow the the Farama Foundation Gymnasium API:
from tile_match_gym.tile_match_env import TileMatchEnv
env = TileMatchEnv(
num_rows=10,
num_cols=10,
num_colours=4,
num_moves=30,
colourless_specials=["cookie"],
colour_specials=["vertical_laser", "horizontal_laser", "bomb"],
seed=2
render_mode="human",
)
obs, _ = env.reset()
while True:
action = env.action_space.sample()
next_obs, reward, done, truncated, info = env.step(action)
env.render()
if done:
break
else:
obs = next_obs
Citation
We'd love it if you use our package for your research! If you do use code from this repository please cite us as below:
@software{tile_match_gym,
author = {Patel, Akshil and Elson, James},
title = {{Tile Matching Game Reinforcement Learning Environments}},
url = {https://github.com/akshilpatel/tile-match-gym},
version = {1.0.6},
year = {2023}
}
Metadata
Release files for tile-match-gym 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tile_match_gym-1.0.6.tar.gz | 20.9 kB | Without provenance | Details for tile_match_gym-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tile_match_gym-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for tile_match_gym-1.0.6-py3-none-any.whl |
Total release size: 40.9 kB
Release files / tile_match_gym-1.0.6.tar.gz
| Download URL | tile_match_gym-1.0.6.tar.gz |
|---|---|
| Size | 20.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29ed3fd33a89d779d331b925324b3f907cf30396963483cc078c4f048bbcdf72
|
|
BLAKE2b-256 checksum How to use checksums |
3b99a5ad5c6783ce09be3e56d962dc5484a3bc87d026652db30fcc31a47f64aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / tile_match_gym-1.0.6-py3-none-any.whl
| Download URL | tile_match_gym-1.0.6-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7cf8393358f6ee8aead733fbc0df9d10f95044435c1f3f4b793d550d992de662
|
|
BLAKE2b-256 checksum How to use checksums |
15fd095c0cebcc9c71eb8a7efea0e8acf363333a50f0835ceeacf42efafe9ce3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for tile-match-gym 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.