Hearthstone simulator using C++ with some reinforcement learning
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Builds/CMake
Datas
Documents
Extensions
Includes/hspp
Libraries
Medias
Resources
Scripts
Sources
Tests/UnitTests
.clang-format
.codacy.yml
.gitignore
.gitmodules
.lgtm.yml
.travis.yml
3RD-PARTY.md
CMakeLists.txt
CMakeSettings.json
LICENSE
README.md
appveyor.yml
azure-pipelines.yml
codecov.yml

README.md

Hearthstone++

License Build Status Build status Build Status

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

Hearthstone++ 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. Hearthstone++ currently supports macOS (10.12.6 or later), Ubuntu (17.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 Hearthstone++.

Related Repositories

Key Features

  • Support C++17 based Hearthstone library
  • Provide console and GUI simulator

To-do Features

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

Card Sets

Basic & Classic

  • 24% Basic (33 of 133 Cards)
  • 8% Classic (20 of 236 Cards)
  • 0% Hall of Fame (0 of 10 Cards)

Adventures

  • 0% One Night in Karazhan (0 of 45 Cards)
  • 0% The League of Explorers (0 of 45 Cards)
  • 0% Blackrock Mountain (0 of 31 Cards)
  • 0% Curse of Naxxramas (0 of 30 Cards)

Expensions

  • 0% The Boomsday Project (0 of 135 Cards)
  • 0% The Witchwood (0 of 135 Cards)
  • 0% Kobolds & Catacombs (0 of 135 Cards)
  • 0% Knights of the Frozen Throne (0 of 135 Cards)
  • 0% Journey to Un'Goro (0 of 135 Cards)
  • 0% Mean Streets of Gadgetzan (0 of 132 Cards)
  • 0% Whispers of the Old Gods (0 of 134 Cards)
  • 0% The Grand Tournament (0 of 132 Cards)
  • 0% Goblins vs Gnomes (0 of 123 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/Hearthstonepp.git --recursive
cd Hearthstonepp

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 Hearthstonepp.sln /p:Configuration=Release

Now run console simulator:

bin/HSppConsole

To run GUI simulator, please check out Hearthstone++ GUI.

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.

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 MIT License:

Copyright © 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon, SungHyun Kim and JunYoung Park.

Permission 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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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