Coder Social home page Coder Social logo

ghastcoiler's Introduction

Ghastcoiler

Ghastcoiler is a Hearthstone Battlegrounds simulator written in Python, and the only Python in the game. This README goes over the goals of the project and a list of TODOs. Like the rest of the repository, this is a work in progress.

Goals

The first goal is that writing a simulator for Hearthstone Battlegrounds is a challenge. Implementing the rules properly, in a maintainable structure while keeping the code at some form of efficiency is not easy.

When the core simulator is finished, this can be used for studying to get better at the game, for example about positioning. For another use, this can be a stepping stone towards a reinforcement learning environment or a model that can efficiently and accurately predict the outcome based on both boards.

Collaboration

We would love for others to help out with this project, while we are working out what the best process is you can already make pull requests. The initial focus is on finishing the simulator. We will update this section soon.

TODO

We are currently only at the beginning. There are a few initial focus points:

  • Add docstrings and some comments
  • Add ranks 2 to 6
  • Increasing the amount of useful tests
  • Figuring out some niche game mechanics
  • Add heroes with in-battle effects
  • Optimizing the speed

ghastcoiler's People

Contributors

cubonacci-demo avatar danicfortier avatar janvdvegt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ghastcoiler's Issues

Redesign dynamic attack and defense bonus system

The current method is naive and expensive, my suggestion would be to keep the bonuses in the state of the minion, keep a flag to minions whether they grant bonuses and when a minion is added or removed that grants bonuses, do an update of the bonuses for all minions.

Collaboration suggestions

I have added some small things to other open source projects but I've never started one. Any good suggestions for making collaboration easy?

Fix attack cursor order

Currently determining the next minion to attack does not work well, this needs to be fixed including some tests. Tests should include:

  • Minion that would attack next dies, cursor stays at same place
  • Minion before next attacking minion dies, cursor should move with minion
  • Minion before next attacking minon dies but spawns new minion(s), cursor should stay at current attacking minion

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.