A set of reinforcement learning environments for tile matching games, consistent with the OpenAI Gym API.
Project description
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=[],
colour_specials=[],
seed=2
)
obs, _ = env.reset()
while True:
action = env.action_space.sample()
next_obs, reward, done, truncated, info = env.step(action)
if done:
break
else:
next_obs = 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 = {0.0.3},
year = {2023}
}
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
File details
Details for the file tile-match-gym-0.0.3.tar.gz
.
File metadata
- Download URL: tile-match-gym-0.0.3.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e2c34cc39e70282196534a4f1e5e45cb71394e2cce52dd82d90c5e00fa905b2 |
|
MD5 | 074f3dfe72cb9ac04b9ac496d551c707 |
|
BLAKE2b-256 | de51117e0774d71862aa6dd3675dc71967ac5a84ff98df0b3eb4001add7bfd3b |
File details
Details for the file tile_match_gym-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: tile_match_gym-0.0.3-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51693d5eb369bc3d30e3a88916c420e74a6fb76bc6d60e56b3c3665fc889f106 |
|
MD5 | 92ca6dff11262f28c04b429d7a6d5794 |
|
BLAKE2b-256 | 251d6e0c6d99919dba08c5a86857a9f11634aad8b39b64f2e21cefe2a37dd305 |