A console-based recreation of Hearthstone made in Python
Find a file
2025-03-11 10:05:19 +01:00
.github/workflows Prepare for public code release 2025-03-05 10:20:51 +01:00
cards Add remaining tests 2025-03-06 10:12:24 +01:00
src Rename create_wall => align_columns 2025-03-11 10:05:19 +01:00
tests/src Add remaining tests 2025-03-06 10:12:24 +01:00
.gitattributes Init 2025-03-04 12:02:42 +01:00
.gitignore Add remaining tests 2025-03-06 10:12:24 +01:00
.pre-commit-config.yaml Add ruff 2025-03-05 08:25:52 +01:00
LICENSE Init 2025-03-04 12:02:42 +01:00
main.py Add mana and visualize stats 2025-03-11 09:50:18 +01:00
pyproject.toml Prepare for public code release 2025-03-05 10:20:51 +01:00
pytest.ini Prepare for public code release 2025-03-05 10:20:51 +01:00
README.md Prepare for public code release 2025-03-05 10:20:51 +01:00
requirements-dev.txt Add tests 2025-03-05 11:21:41 +01:00
requirements.txt Prepare for public code release 2025-03-05 10:20:51 +01:00

Hearthstone.py

This is a Hearthstone.js recreation in Python.

Not to be confused with Hearthstone.py V1 or Hearthstone.py V2, this is it's own thing.

This is currently very early in development and probably won't reach feature parity with hsjs, but I was bored...

Running

  1. Install Python.
  2. Do pip install -r requirements.txt.
  3. Run the main.py file (python3 main.py) to run the game.

Development

  1. Do pip install -r requirements-dev.txt.
  2. Format by doing ruff format.
  3. Add pre-commit hook by doing pre-commit install.
  4. If you are planning to open a pull request, try keeping the code modular and extendable. Take notes from how the current codebase does things.