Skip to content

Just another Hearthstone Simulator in C# .Net Core, with some A.I. approaches!

License

Notifications You must be signed in to change notification settings

Jeredian/SabberStone

 
 

Repository files navigation

SabberStone logo

                           Travis Build Status AppVeyor Build status

Overview

State of Implementation: 83% (Kobolds and Catacombs 14%) of current Standard Cards (Year of the ... Maaaaaamooouth)! (24.12.2017)

SabberStone is just another Hearthstone simulator and implementation, written in C#. The project was started in Nov'16 while trying to implement aura, buffs & triggers into Brimstone. Focused to prototype my so called onion system I created SabberStone, which is using a layer approach to handle entity changing enchantments. Since then I haven't stopped implementing day by day new cards, new tests and new stuff. I created for fun a visualisation and a scoring based tree search a.i. which can be used to play games (SabberStoneGui). If also implemented a few current decks of the "JANUARY 2017, SEASON 34", like the PirateAggroWarrior and the MidrangeJadeShaman.

By now this is a one man show, but there is still a lot of work to do, so any help is appreciated. The base code of Brimstone was a great inspiration for this project. Big thanks to @Pattux, @Patashu for helping on hearthstone super science problems ^^ thx @Katy for inspiration. And thx a lot to @Citiral, @BertP & @Milva for working out on the stove implementation. You're welcome!

Sabberstone Simulator can be connected to the real Hearthstone client! Preview SabberStone connected to the Stove project

Project Structure

  • SabberStoneCore (.NET Core)

    Core simulator engine, all the functions needed for the simulator are in here. Check out the Wiki Link for informations about the core and how to use it.

  • SabberStoneCoreTest (.NET Core)

    UnitTest for the simulator, there is a generated test for each card in the current game.

  • SabberStoneCoreConsole (.NET Core)

    A test project to run simple codeline based games to test outcome.

  • SabberStoneCoreAi (.NET Core)

    A test project to run A.I. simulations with predefinied decks and strategys.

  • SabberStoneGui (.NET Framework)

    A test project that shows off a visual implementation of the SimpleAi project. This is probably where beginners should start looking at. There is a simple GUI which allows different decks to play against each other with different strategys. Check out the Wiki Link for informations about the use of SimpleUi. Preview of the GUI project - in Game mode Preview of the GUI project - in Deck creator mode

Cards Implementation

  • Aura, Enchantment & Trigger
  • Hero, Hero Power & Weapon
  • Battlecry & Deathrattle
  • Choose One & Combo
  • Spell Power
  • Inspire, Joust & Discover
  • Jade Golems (Jade Lotus)
  • Buffing Hand (Grimy Goons)
  • Excess Mana
  • Freeze, Stealth & Poisonous
  • Potions (Kabal) ex. Kazakus
  • Adapt
  • Quest
  • Spell Bender Phase
  • Spell Text Phase (check if not already done)

Basic & Classic

  • 100% Basic (142 Cards)
  • 98% Classic (239 Cards)
  • 60% Hall of Fame (10 Cards)

Adventures

  • 96% Blackrock Mountain (31 Cards)
  • 95% One Night in Karazhan (45 Cards)
  • 97% The League of Explorers (45 Cards)

Expensions

  • 14% Kobolds and Catacombs (135 Cards)
  • 74% Knights of the Frozen Throne (135 Cards)
  • 88% Journey to Un'Goro (135 cards)
  • 91% The Grand Tournament (132 Cards)
  • 94% Whispers of the Old Gods (134 Cards)
  • 97% Mean Streets of Gadgetzan (132 Cards)
  • 8% Goblins vs Gnomes (123 cards)
  • 6% Curse of Naxxramas (30 cards)

(Standard is beeing prioritized.)

ToDo List

  • move SabberStone to Github
  • start Wiki for SabberStone
  • moved from .NET Framework to .NET Core
  • make tasksystem stateful
  • create a sync with a current game (hook on the power.log)
  • integrate inter phases split.
  • implement caching for performance opt.
  • fill wiki for SabberStone

Requirements

Installation

  • tbd

Documentation

License

AGPLv3

SabberStone is licensed under the terms of the Affero GPLv3 or any later version.

Community

SabberStone is being developed by darkfriend77 ([email protected])

About

Just another Hearthstone Simulator in C# .Net Core, with some A.I. approaches!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.9%
  • Other 0.1%