-
Notifications
You must be signed in to change notification settings - Fork 151
Developer Quick Start
Jian Liu edited this page Oct 18, 2015
·
24 revisions
Fireplace is mainly a Python project, so setting up a development environment should be straightforward if you are familiar with normal Python tools, but there are a couple of wrinkles to be aware of.
- Install Python 3.4 or above, as well as pip, and git. It's also generally useful to set up a venv at this time.
- Clone the repository locally, e.g.
git clone https://github.com/jleclanche/fireplace.wiki.git
- Install requirements:
pip install -r /path/to/requirements.txt
- Run
bootstrap.sh
, if running Bash, orbootstrap.ps1
, if under Powershell. This downloads and initializes card definitions. - Check that everything works: from
test
directory, runpy.test
. A successful run looks like:
============================= test session starts =============================
platform win32 -- Python 3.5.0, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: C:\Users\liuji\Google Drive\GitHubVisualStudio\fireplace, inifile:
collected 371 items
test_exceptions.py ....................
test_hero_powers.py ......
test_interactions.py .
test_main.py .........................................................................
......................................................................................
......................................................................................
test_mechanics.py ...........................
test_selector.py ..
========================= 371 passed in 18.09 seconds =========================
The python-hearthstone
dependency is unversioned, so if you run into issues, try upgrading it with pip install --upgrade --force-reinstall -r /path/to/requirements.txt
- The Fireplace Card API
- The Fireplace DSL
- Card introspection
- Creating and playing a Game
- The CardDefs.xml file
- Developer Quick Start
- How to enable logging in Hearthstone
- Frequently Asked Questions
- Game State
- Game Actions
- Powers and Card Actions
- Target Selection
- Events
- Enchantments