{"id":15047152,"url":"https://github.com/utilforever/rosettastone","last_synced_at":"2025-11-03T18:08:14.526Z","repository":{"id":38361134,"uuid":"91815485","full_name":"utilForever/RosettaStone","owner":"utilForever","description":"Hearthstone simulator using C++ with some reinforcement learning","archived":false,"fork":false,"pushed_at":"2024-06-12T15:11:07.000Z","size":63031,"stargazers_count":664,"open_issues_count":83,"forks_count":80,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-04-12T14:57:32.239Z","etag":null,"topics":["cplusplus","cpp","cpp17","hearthstone","hearthstone-api","hearthstone-simulator","python-api","reinforcement-learning","rl","rl-environment","simulator-game"],"latest_commit_sha":null,"homepage":"https://utilforever.github.io/RosettaStone/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utilForever.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-19T14:41:26.000Z","updated_at":"2025-04-05T06:20:17.000Z","dependencies_parsed_at":"2023-02-01T05:00:27.901Z","dependency_job_id":"f752af41-09b9-407e-b8be-a7e00162b4cf","html_url":"https://github.com/utilForever/RosettaStone","commit_stats":{"total_commits":10213,"total_committers":56,"mean_commits":182.375,"dds":"0.13629687652991285","last_synced_commit":"c4cc027a4959ff0c3b9883d05388d992f5c95e25"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utilForever%2FRosettaStone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utilForever%2FRosettaStone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utilForever%2FRosettaStone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utilForever%2FRosettaStone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utilForever","download_url":"https://codeload.github.com/utilForever/RosettaStone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586249,"owners_count":21128997,"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":["cplusplus","cpp","cpp17","hearthstone","hearthstone-api","hearthstone-simulator","python-api","reinforcement-learning","rl","rl-environment","simulator-game"],"created_at":"2024-09-24T20:54:52.962Z","updated_at":"2025-11-03T18:08:14.464Z","avatar_url":"https://github.com/utilForever.png","language":"C++","readme":"# RosettaStone\n\n\u003cimg src=\"./Medias/Logos/Logo.png\" width=256 height=256 /\u003e\n\n[![License](https://img.shields.io/badge/Licence-AGPLv3-blue.svg)](https://github.com/utilForever/RosettaStone/blob/main/LICENSE)\n![Windows](https://github.com/utilForever/RosettaStone/workflows/Windows/badge.svg)\n![Ubuntu](https://github.com/utilForever/RosettaStone/workflows/Ubuntu/badge.svg)\n![macOS](https://github.com/utilForever/RosettaStone/workflows/macOS/badge.svg)\n[![Discord](https://img.shields.io/discord/483192043737186335.svg)](https://discord.gg/6R3UueR)\n\n[![codecov](https://codecov.io/gh/utilForever/RosettaStone/branch/main/graph/badge.svg)](https://codecov.io/gh/utilForever/RosettaStone)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/df6a02e1358f4e719e7bebb9a728d2ab)](https://www.codacy.com/app/utilForever/RosettaStone?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=utilForever/RosettaStone\u0026amp;utm_campaign=Badge_Grade)\n[![CodeFactor](https://www.codefactor.io/repository/github/utilforever/RosettaStone/badge)](https://www.codefactor.io/repository/github/utilforever/RosettaStone)\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=RosettaStone\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=RosettaStone)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=RosettaStone\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=RosettaStone)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=RosettaStone\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=RosettaStone)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=RosettaStone\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=RosettaStone)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=RosettaStone\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=RosettaStone)\n\nRosettaStone is Hearthstone simulator using C++ with some reinforcement learning. The code is built on C++17 and can be compiled with commonly available compilers such as g++, clang++, or Microsoft Visual Studio. RosettaStone currently supports macOS (10.14 or later), Ubuntu (18.04 or later), Windows (Visual Studio 2017 or later), and Windows Subsystem for Linux (WSL). Other untested platforms that support C++17 also should be able to build RosettaStone.\n\n## Related Repositories\n\n  * [RosettaStone GUI](https://www.github.com/utilforever/RosettaStone-GUI)\n\n## Key Features\n\n  * C++17 based Hearthstone library\n  * Console and GUI simulator program\n  * C++ and Python API\n\n## To-do Features\n\n  * Upgrade \"The Innkeeper\" to smart\n  * Recommend top-tier decks\n  * Deck tracker\n  * Web simulator\n\n## Cards Implementation\n\n### Standard Format\n\n  * 98% Core Set (247 of 250 cards)\n  * 81% Forged in the Barrens (139 of 170 cards)\n  * 35% United in Stormwind (60 of 170 cards)\n  * 35% Fractured in Alterac Valley (61 of 170 cards)\n  * 12% Voyage to the Sunken City (22 of 170 cards)\n  * 10% Murder at Castle Nathria (17 of 170 cards)\n  * 0% March of the Lich King (0 of 1 cards)\n\n### Wild Format\n\n  * **100% Legacy (167 of 167 Cards)**\n  * **100% Expert1 (245 of 245 Cards)**\n  * **100% Demon Hunter Initiate (20 of 20 Cards)**\n  * **100% Curse of Naxxramas (30 of 30 Cards)**\n  * 6% Goblins vs Gnomes (8 of 123 Cards)\n  * **100% Blackrock Mountain (31 of 31 Cards)**\n  * 8% The Grand Tournament (11 of 132 Cards)\n  * **100% The League of Explorers (45 of 45 Cards)**\n  * 5% Whispers of the Old Gods (8 of 134 Cards)\n  * **100% One Night in Karazhan (45 of 45 Cards)**\n  * 2% Mean Streets of Gadgetzan (3 of 132 Cards)\n  * 7% Journey to Un'Goro (10 of 135 Cards)\n  * 4% Knights of the Frozen Throne (6 of 135 Cards)\n  * 5% Kobolds \u0026 Catacombs (7 of 135 Cards)\n  * 5% The Witchwood (8 of 135 Cards)\n  * 2% The Boomsday Project (4 of 136 Cards)\n  * 5% Rastakhan's Rumble (7 of 135 Cards)\n  * **100% Rise of Shadows (136 of 136 cards)**\n  * **99% Saviors of Uldum (134 of 135 cards)**\n    * Except 'Zephrys the Great' (ULD_003)\n  * **100% Descent of Dragons (140 of 140 cards)**\n  * 60% Galakrond's Awakening (21 of 35 cards)\n  * 60% Ashes of Outland (82 of 135 cards)\n  * 57% Scholomance Academy (78 of 135 cards)\n  * 46% Madness at the Darkmoon Faire (79 of 170 cards)\n\n### Classic Format\n\n  * **100% Vanilla Set (382 of 382 Cards)**\n\n## Implementation List\n\n  * [Ability list](./Documents/AbilityList.md)\n  * Card list\n    * [Standard Format](./Documents/CardList%20-%20Standard.md)\n    * [Wild Format](./Documents/CardList%20-%20Wild.md)\n    * [Classic Format](./Documents/CardList%20-%20Classic.md)\n  * [Task list](./Documents/TaskList.md)\n\n## Quick Start\n\nYou will need CMake to build the code. If you're using Windows, you need Visual Studio 2017 in addition to CMake.\n\nFirst, clone the code:\n\n```\ngit clone https://github.com/utilForever/RosettaStone.git --recursive\ncd RosettaStone\n```\n\n### Python API\n\nBuild and install the package by running\n\n```\npip install -U .\n```\n\n**NOTE**: We are making Python API and related examples.\n\n### C++ API\n\nFor macOS or Linux or Windows Subsystem for Linux (WSL):\n\n```\nmkdir build\ncd build\ncmake ..\nmake\n```\n\nFor Windows:\n\n```\nmkdir build\ncd build\ncmake .. -G\"Visual Studio 15 2017 Win64\"\nMSBuild RosettaStone.sln /p:Configuration=Release\n```\n\nNow run console simulator:\n\n```\nbin/RosettaConsole\n```\n\n**NOTE**: To run GUI simulator, please check out [RosettaStone GUI](https://www.github.com/utilforever/RosettaStone-GUI).\n\n### Docker\n\n```\ndocker pull utilforever/rosettastone:latest\n```\n\nNow run console simulator:\n\n```\ndocker run -it utilforever/rosettastone\n[inside docker container]\n/app/build/bin/RosettaConsole\n```\n\n### More Instructions of Building the Code\n\nTo learn how to build, test, and install the SDK, please check out [Install.md](./Documents/Install.md).\n\n## Documentation\n\nAll the documentations for the framework can be found from [the project website](https://utilforever.github.io/RosettaStone/) incluing the API reference.\n\n## Presentations\n\n  * [TFCON 2018 Poster Session](./Medias/Presentations/TFCON%202018%20-%20Hearthstone%2B%2B%2C%20Hearthstone%20Simulator%20with%20Reinforcement%20Learning.pdf)\n  * [NDC 2019](./Medias/Presentations/NDC%202019%20-%20Development%20Process%20of%20Hearthstone%20Reinforcement%20Learning%20Environment%20(Korean).pdf)\n\n## Videos\n  \n  * [NDC 2019](https://www.youtube.com/watch?v=yO9QRinXosE)\n\n## Sprints\n\n  * [PyCon Korea 2018 Sprint Session](https://archive.pycon.kr/2018/program/sprint/3)\n  * [Sprint Seoul - April 2019](https://sprintseoul.org/)\n\n## Articles\n\n  * NDC 2019\n    * [[NDC2019] 하스스톤을 위한 '알파고'를 만들 수는 없을까? - 인벤](http://www.inven.co.kr/webzine/news/?news=219330\u0026site=hs)\n    * [[NDC 19] '알파고' 같은 하스스톤 인공지능을 만들기 위한 험난한 여정 - 디스이즈게임](http://www.thisisgame.com/webzine/gameevent/nboard/227/?n=93644)\n    * [[NDC2019 #11] 넥슨 프로그래머의 ‘하스스톤’ A·I 제작기 - 경향게임스](http://www.khgames.co.kr/news/articleView.html?idxno=118028)\n    * [[NDC 2019] 넥슨 프로그래머의 ‘하스스톤’ AI 도전기 - OSEN](http://www.osen.co.kr/article/G1111130399)\n\n## How To Contribute\n\nContributions are always welcome, either reporting issues/bugs or forking the repository and then issuing pull requests when you have completed some additional coding that you feel will be beneficial to the main project. If you are interested in contributing in a more dedicated capacity, then please check out [Contributing.md](./Documents/Contributing.md).\n\n  * [Code of Conduct](./Documents/CodeOfConduct.md)\n  * [Issues](./Documents/Issues.md)\n    * [How to Contribute in Issues](./Documents/Issues.md#how-to-contribute-in-issues)\n    * [Asking for General Help](./Documents/Issues.md#asking-for-general-help)\n    * [Submitting a Bug Report](./Documents/Issues.md#submitting-a-bug-report)\n    * [Triaging a Bug Report](./Documents/Issues.md#triaging-a-bug-report)\n    * [Resolving a Bug Report](./Documents/Issues.md#resolving-a-bug-report)\n  * [Pull request](./Documents/PullRequests.md)\n    * [Setting up your local environment](./Documents/PullRequests.md#setting-up-your-local-environment)\n    * [Making Changes](./Documents/PullRequests.md#making-changes)\n    * [How to add card](./Documents/HowToAddCard.md)\n    * [How to add task](./Documents/HowToAddTask.md)\n\n## Contact\n\nYou can contact me via e-mail (utilForever at gmail.com). I am always happy to answer questions or help with any issues you might have, and please be sure to share any additional work or your creations with me, I love seeing what other people are making.\n\n## Sponsors\n\n[![CppDepend](./Medias/Logos/CppDepend.png)](http://www.cppdepend.com)\n\n## License\n\n\u003cimg align=\"right\" src=\"http://opensource.org/trademarks/opensource/OSI-Approved-License-100x137.png\"\u003e\n\nThe class is licensed under the [Affero GPLv3 License](https://opensource.org/licenses/AGPL-3.0):\n\nRosettaStone is based on part of Sabberstone's code\n\nCopyright \u0026copy; 2017-2021 SabberStone Team, darkfriend77 \u0026 rnilva\n\nRosettaStone, Hearthstone simulator using C++ with some reinforcement learning\n\nCopyright \u0026copy; 2017-2024 [Chris Ohk](https://github.com/utilForever)\n\nRosettaStone is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License. RosettaStone is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.\n\nHearthstone is an interactive game of Blizzard Entertainment, Inc and all rights reserved. Hearthstone is a registered trademark of Blizzard Entertainment, Inc. in the U.S. and/or other countries. This project is not affiliated with Blizzard Entertainment.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futilforever%2Frosettastone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futilforever%2Frosettastone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futilforever%2Frosettastone/lists"}