Skip to main content

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)

Source distribution for tile-match-gym 1.0.6
File Size Uploaded
tile_match_gym-1.0.6.tar.gz 20.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tile-match-gym 1.0.6
File Interpreter ABI Platform
tile_match_gym-1.0.6-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.5

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