Skip to content

Parsing card entity string into fixed length vector representation.

License

Notifications You must be signed in to change notification settings

v3nd3774/HearthstoneParsing

Repository files navigation

Build Status

Can I see the CI status?

Sure, just click the badge up above or this hyperlink.

How to uninstall?

pip uninstall hearthstone-parsing-converter-v3nd3774

How to install?

Since this is a WIP, this is on Test PyPi right now. To install:

pip install -i https://test.pypi.org/simple/ hearthstone-parsing-converter-v3nd3774

Then you should be able to run the tests and use it with py.test.

If you're iterating locally, then use:

build_and_local_install.sh

How to build and put on twine?

Add this to your ~/.pypirc:

[distutils]
index-servers=
    testpypi

[testpypi]
repository: https://test.pypi.org/legacy/
username: YOUR_USER_HERE

Then run ./build_and_upload.sh

HearthstoneParsing

Parsing card entity string into fixed length vector representation.

How are cards represented?

See what cards are tested here.

See below test-case with Leeroy Jenkins from Hearthstone API for an example:

ID Name Set Type Cost Atk HP Db Armor
EX1_116 Leeroy Jenkins Classic Minion Cost 5 Attack 6 Health 2
def test_leeroy():
  card_id = "EX1_116"
  assert (
    Converter.convert(card_id) == np.array([
      6, #attack
      2, #hp
      5, #cost
      0, #adapt
      1, #battlecry
      0, #casts when drawn
      1, #charge
      0, #choose one
      0, #choose twice
      0, #combo
      0, #counter
      0, #deathrattle
      0, #discover
      0, #divine shield
      0, #echo
      0, #freeze
      0, #immune
      0, #inspire
      0, #lifesteal
      0, #magnetic
      0, #mega-windfury
      0, #overkill
      0, #overload
      0, #poisonous
      0, #quest
      0, #recruit
      0, #rush
      0, #secret
      0, #silence
      0, #start of game
      0, #taunt
      0, #windfury
      0, #beast
      0, #demon
      0, #dragon
      0, #elemental
      0, #mech
      0, #murloc
      0, #pirate
      0, #totem
      0  #spell
    ])
  ).all()

About

Parsing card entity string into fixed length vector representation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published