Need help with RosettaStone?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

utilForever
555 Stars 77 Forks GNU Affero General Public License v3.0 9.2K Commits 28 Opened issues

Description

Hearthstone simulator using C++ with some reinforcement learning

Services available

!
?

Need anything else?

Contributors list

RosettaStone

License Windows Ubuntu macOS Ubuntu - Codecov Build Status

codecov Codacy Badge Total alerts Language grade: C/C++ CodeFactor Discord

Quality Gate Status Lines of Code Maintainability Rating Reliability Rating Security Rating

RosettaStone 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.

Related Repositories

Key Features

  • C++17 based Hearthstone library
  • Console and GUI simulator program
  • C++ and Python API

To-do Features

  • Upgrade "The Innkeeper" to smart
  • Recommend top-tier decks
  • Deck tracker
  • Web simulator

Cards Implementation

Standard Format

  • 97% Core Set (230 of 235 cards)
  • 60% Ashes of Outland (81 of 135 cards)
  • 57% Scholomance Academy (78 of 135 cards)
  • 46% Madness at the Darkmoon Faire (79 of 170 cards)
  • 80% Forged in the Barrens (136 of 170 cards)
  • 14% United in Stormwind (24 of 170 cards)
  • 1% Fractured in Alterac Valley (2 of 135 cards)

Wild Format

  • 100% Legacy (167 of 167 Cards)
  • 100% Expert1 (245 of 245 Cards)
  • 100% Demon Hunter Initiate (20 of 20 Cards)
  • 13% Curse of Naxxramas (4 of 30 Cards)
  • 5% Goblins vs Gnomes (7 of 123 Cards)
  • 3% Blackrock Mountain (1 of 31 Cards)
  • 6% The Grand Tournament (8 of 132 Cards)
  • 6% The League of Explorers (3 of 45 Cards)
  • 2% Whispers of the Old Gods (4 of 134 Cards)
  • 11% One Night in Karazhan (5 of 45 Cards)
  • 0% Mean Streets of Gadgetzan (0 of 132 Cards)
  • 3% Journey to Un'Goro (5 of 135 Cards)
  • 3% Knights of the Frozen Throne (5 of 135 Cards)
  • 2% Kobolds & Catacombs (3 of 135 Cards)
  • 2% The Witchwood (3 of 135 Cards)
  • 2% The Boomsday Project (4 of 136 Cards)
  • 1% Rastakhan's Rumble (2 of 135 Cards)
  • 100% Rise of Shadows (136 of 136 cards)
  • 99% Saviors of Uldum (134 of 135 cards)
    • Except 'Zephrys the Great' (ULD_003)
  • 100% Descent of Dragons (140 of 140 cards)
  • 57% Galakrond's Awakening (20 of 35 cards)

Classic Format

  • 7% Vanilla Set (27 of 382 Cards)

Implementation List

Quick Start

You will need CMake to build the code. If you're using Windows, you need Visual Studio 2017 in addition to CMake.

First, clone the code:

git clone https://github.com/utilForever/RosettaStone.git --recursive
cd RosettaStone

Python API

Build and install the package by running

pip install -U .

NOTE: We are making Python API and related examples.

C++ API

For macOS or Linux or Windows Subsystem for Linux (WSL):

mkdir build
cd build
cmake ..
make

For Windows:

mkdir build
cd build
cmake .. -G"Visual Studio 15 2017 Win64"
MSBuild RosettaStone.sln /p:Configuration=Release

Now run console simulator:

bin/RosettaConsole

NOTE: To run GUI simulator, please check out RosettaStone GUI.

Docker

docker pull utilforever/rosettastone:latest

Now run console simulator:

docker run -it utilforever/rosettastone
[inside docker container]
/app/build/bin/RosettaConsole

More Instructions of Building the Code

To learn how to build, test, and install the SDK, please check out Install.md.

Documentation

All the documentations for the framework can be found from the project website incluing the API reference.

Presentations

Videos

Sprints

Articles

How To Contribute

Contributions 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.

Contact

You 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.

Sponsors

CppDepend

License

The class is licensed under the Affero GPLv3 License:

RosettaStone is based on part of Sabberstone's code

Copyright (c) 2017-2021 SabberStone Team, darkfriend77 & rnilva

RosettaStone is based on part of hearthstone-ai's code

Copyright (c) 2017 Peter Shih, peter1591

RosettaStone, Hearthstone simulator using C++ with some reinforcement learning

Copyright (c) 2017-2021 RosettaStone Team

RosettaStone 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.

Hearthstone 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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.