tile-match-gym


Nametile-match-gym JSON
Version 0.0.5 PyPI version JSON
download
home_pageNone
SummaryA set of reinforcement learning environments for tile matching games, consistent with the OpenAI Gym API.
upload_time2024-04-05 13:37:51
maintainerNone
docs_urlNone
authorJames Elson
requires_python>=3.8
licenseCopyright (c) 2023, Akshil Patel Copyright (c) 2023, James Elson All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of tile-match-gym nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords reinforcement-learning gym tile-matching games rl openai-gym gymnasium rl-environment
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.5},
  year = {2023}
  }
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tile-match-gym",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "reinforcement-learning, gym, tile-matching, games, rl, openai-gym, gymnasium, rl-environment",
    "author": "James Elson",
    "author_email": "Akshil Patel <akshilpatel11@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/b1/f2/8ee6c900c45ba3ba809f915c5f36fe77ff27fd38fdbee2e0c3eda363591a/tile-match-gym-0.0.5.tar.gz",
    "platform": null,
    "description": "# Tile Matching Reinforcement Learning Environments\n\nWelcome 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.\n\nThis genre of games is characterised by the following features, which we find useful for reinforcement learning research:\n\n- Large action spaces\n- Intuitive action hierarchies\n- Procedurally generated levels\n- Structured complex stochasticity in transition dynamics\n\n## Installation\n\nYou can install the package via pip:\n\n```pip install tile-match-gym```\n\n## Example Usage\n\nWe follow the the Farama Foundation Gymnasium API:\n\n```\nfrom tile_match_gym.tile_match_env import TileMatchEnv\n\nenv = TileMatchEnv(\n  num_rows=10, \n  num_cols=10, \n  num_colours=4, \n  num_moves=30, \n  colourless_specials=[], \n  colour_specials=[], \n  seed=2\n  )\n\nobs, _ = env.reset()\n\nwhile True:\n    action = env.action_space.sample()\n    next_obs, reward, done, truncated, info = env.step(action)\n    if done:\n        break\n    else:\n      next_obs = obs\n```\n\n## Citation\n\nWe'd love it if you use our package for your research! If you do use code from this repository please cite us as below:\n\n```\n@software{tile_match_gym,\n  author = {Patel, Akshil and Elson, James},\n  title = {{Tile Matching Game Reinforcement Learning Environments}},\n  url = {https://github.com/akshilpatel/tile-match-gym},\n  version = {0.0.5},\n  year = {2023}\n  }\n```\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2023, Akshil Patel Copyright (c) 2023, James Elson  All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of tile-match-gym nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "A set of reinforcement learning environments for tile matching games, consistent with the OpenAI Gym API.",
    "version": "0.0.5",
    "project_urls": {
        "Homepage": "https://github.com/akshilpatel/tile-match-gym",
        "Issues": "https://github.com/akshilpatel/tile-match-gym/issues"
    },
    "split_keywords": [
        "reinforcement-learning",
        " gym",
        " tile-matching",
        " games",
        " rl",
        " openai-gym",
        " gymnasium",
        " rl-environment"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df86a6bd1046b7f527f4db27070b0fb77526597bd06a02e080ea6ac9641163a9",
                "md5": "2bd847ebbd0c5eac2d60e51ca7c8242d",
                "sha256": "b786dc01270c013f5342a8f6d41cb7a3b20d9317347d28697784f99b58889e7c"
            },
            "downloads": -1,
            "filename": "tile_match_gym-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2bd847ebbd0c5eac2d60e51ca7c8242d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 18583,
            "upload_time": "2024-04-05T13:37:50",
            "upload_time_iso_8601": "2024-04-05T13:37:50.073545Z",
            "url": "https://files.pythonhosted.org/packages/df/86/a6bd1046b7f527f4db27070b0fb77526597bd06a02e080ea6ac9641163a9/tile_match_gym-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b1f28ee6c900c45ba3ba809f915c5f36fe77ff27fd38fdbee2e0c3eda363591a",
                "md5": "0a519f496f3a5a8260376b3fd71beb09",
                "sha256": "ffc7bc6496e2597e516e151928244da8cfea1fab48857939d362fba5b0b09fdc"
            },
            "downloads": -1,
            "filename": "tile-match-gym-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "0a519f496f3a5a8260376b3fd71beb09",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 19632,
            "upload_time": "2024-04-05T13:37:51",
            "upload_time_iso_8601": "2024-04-05T13:37:51.729367Z",
            "url": "https://files.pythonhosted.org/packages/b1/f2/8ee6c900c45ba3ba809f915c5f36fe77ff27fd38fdbee2e0c3eda363591a/tile-match-gym-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-05 13:37:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "akshilpatel",
    "github_project": "tile-match-gym",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tile-match-gym"
}
        
Elapsed time: 0.21663s