{"id":22707116,"url":"https://github.com/cair/rl","last_synced_at":"2025-04-13T12:30:21.091Z","repository":{"id":61357831,"uuid":"358184158","full_name":"cair/rl","owner":"cair","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-15T17:29:42.000Z","size":3930,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-27T03:35:10.862Z","etag":null,"topics":["ai","artificial-intelligence","cpp","deep-learning","deep-reinforcement-learning","game","machine-learning","neural-networks","python","reinforcement-learning","reinforcement-learning-environments","tree-search"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cair.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-15T08:27:15.000Z","updated_at":"2024-06-20T19:31:54.000Z","dependencies_parsed_at":"2022-10-15T20:41:32.947Z","dependency_job_id":null,"html_url":"https://github.com/cair/rl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2Frl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2Frl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2Frl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2Frl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cair","download_url":"https://codeload.github.com/cair/rl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248714188,"owners_count":21149845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","artificial-intelligence","cpp","deep-learning","deep-reinforcement-learning","game","machine-learning","neural-networks","python","reinforcement-learning","reinforcement-learning-environments","tree-search"],"created_at":"2024-12-10T10:11:32.925Z","updated_at":"2025-04-13T12:30:21.060Z","avatar_url":"https://github.com/cair.png","language":"C++","readme":"# CaiRL - A Reinforcement Learning Environment Suite\n![CAIRL](./docs/CAIRL_LOGO.svg)\nCaiRL is a fast and efficient environment test-bench for reinforcement learning (RL) research.\n\nCaiRL focus on being fully compatible with [OpenAI Gym](https://github.com/openai/gym) but with magnitude faster execution times.\n```python\n # Running OpenAI Gym\nimport gym\nenv = gym.make(\"CartPole-v0\")\nfor episode in range(10):\n    env.reset()\n    terminal = False\n    while not terminal:\n        state, reward, terminal, info = env.step(env.action_space.sample())\n        # Do Reinforcement Learning Stuff here ...    \n    \n# Running CaiRL Environment Suite\nimport cairl.gym\nenv = cairl.gym.make(\"CartPole-v0\")\nfor episode in range(10):\n    env.reset()\n    terminal = False\n    while not terminal:\n        state, reward, terminal, info = env.step(env.action_space.sample())\n        # Do Reinforcement Learning Stuff here ...\n ```\nOkay so you have made a copy of OpenAI Gym, so what?\n![Results for CartPole](./docs/demo_0.png)\n\nDo I need to say more?\n\n\n\u003chtml\u003e\n\u003c!--\n## Cite\nIf you use CaiRL in your work, please cite the following paper:\n```\nTODO\n```--\u003e\n\u003c/html\u003e\n\n\n# Requirements\n1. Python \u003e= 3.6\n\n# Installing\n`pip install https://github.com/cair/rl`\n\n\n# Environments\nThe following environments are included as of this commit:\n1. Deep Maze (Python) (Done)\n2. Deep RTS (C++) (Done)\n3. Deep Warehouse (Python) (Done)\n4. Deep Line Wars 1 (Python) (Done)\n5. Deep Line Wars 2 (C++) (TODO, GUI needs rewrite)\n6. Flash RL (C++) (Done)\n7. Hex AI (C/C++) (Done)\n8. X1337 Space Shooter (C++) (Done Partially)\n9. Classic Control (C++) (Done)\n\nNote that not all environments are implemented in full CaiRL Gym style, but this is eventually the goal, including adding new games/problems/environments in the future!\n\nFeel free to put up a issue on the tracker if you find any bugs.\n\n# Licence\nCopyright 2021 Per-Arne Andersen\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcair%2Frl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcair%2Frl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcair%2Frl/lists"}