Skip to content

Instantly share code, notes, and snippets.

Benedict Etzel beheh

View GitHub Profile
View power.log
D 20:17:20.3716890 GameState.DebugPrintPowerList() - Count=107
D 20:17:20.3750320 GameState.DebugPrintPower() - CREATE_GAME
D 20:17:20.3758020 GameState.DebugPrintPower() - GameEntity EntityID=1
D 20:17:20.3782330 GameState.DebugPrintPower() - tag=ZONE value=PLAY
D 20:17:20.3789900 GameState.DebugPrintPower() - tag=ENTITY_ID value=1
D 20:17:20.3802700 GameState.DebugPrintPower() - tag=CARDTYPE value=GAME
D 20:17:20.3813700 GameState.DebugPrintPower() - Player EntityID=2 PlayerID=1 GameAccountId=[hi=144115198130930503 lo=17412774]
D 20:17:20.3821570 GameState.DebugPrintPower() - tag=HERO_ENTITY value=64
D 20:17:20.3828200 GameState.DebugPrintPower() - tag=MAXHANDSIZE value=10
D 20:17:20.3834670 GameState.DebugPrintPower() - tag=STARTHANDSIZE value=4
View gist:2b0acdd78917a74f489e01b1c7867b9e
Traceback (most recent call last):
File "/home/vagrant/hsreplay.net/manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/home/vagrant/env/lib/python3.4/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/home/vagrant/env/lib/python3.4/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/vagrant/env/lib/python3.4/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/vagrant/env/lib/python3.4/site-packages/django/core/management/base.py", line 342, in execute
View keybase.md

Keybase proof

I hereby claim:

  • I am beheh on github.
  • I am beheh (https://keybase.io/beheh) on keybase.
  • I have a public key ASCdohWoQbu78wriFl7cMKEgf_nHgOYnmR3BR0euQlRVKAo

To claim this, I am signing this object:

View response.json
{
"shortid": "5XdH42ucdtJaJbxNmQDUoQ",
"user": {
"id": 5,
"battletag": null,
"username": null
},
"global_game": {
"build": 15590,
"match_start": "2017-01-25T22:52:31.897906Z",
View Power.log
This file has been truncated, but you can view the full file.
D 10:21:55.4241030 GameState.DebugPrintPowerList() - Count=76
D 10:21:55.4276270 GameState.DebugPrintPower() - CREATE_GAME
D 10:21:55.4284940 GameState.DebugPrintPower() - GameEntity EntityID=1
D 10:21:55.4315140 GameState.DebugPrintPower() - tag=10 value=85
D 10:21:55.4325480 GameState.DebugPrintPower() - tag=TURN value=1
D 10:21:55.4336610 GameState.DebugPrintPower() - tag=ZONE value=PLAY
D 10:21:55.4347710 GameState.DebugPrintPower() - tag=ENTITY_ID value=1
D 10:21:55.4363310 GameState.DebugPrintPower() - tag=NEXT_STEP value=BEGIN_MULLIGAN
D 10:21:55.4373760 GameState.DebugPrintPower() - tag=CARDTYPE value=GAME
View actions.py:437.TypeError.txt
Traceback (most recent call last):
File "./test_fuzzy.py", line 70, in main
File "/home/benedict/Dokumente/fireplace/fireplace/card.py", line 299, in play
self.game.queue_actions(self.controller, [actions.Play(self, target, index)])
File "/home/benedict/Dokumente/fireplace/fireplace/game.py", line 160, in queue_actions
ret = self.trigger_actions(source, actions)
File "/home/benedict/Dokumente/fireplace/fireplace/game.py", line 184, in trigger_actions
ret.append(action.trigger(source))
File "/home/benedict/Dokumente/fireplace/fireplace/actions.py", line 127, in trigger
self.do(source, *args)
@beheh
beheh / AssertionError.log
Created Dec 15, 2015
AssertionError with Mogor
View AssertionError.log
Starting game Game(players=(Player(name='Player1', hero=None), Player(name='Player2', hero=None)))
Player(name='Player1', hero=<Hero ("Gul'dan")>) triggering <TargetedAction: Summon(CARDS=<HeroPower ('Life Tap')>)> targeting [Player(name='Player1', hero=<Hero ("Gul'dan")>)]
Player1 summons [<HeroPower ('Life Tap')>]
Player(name='Player1', hero=<Hero ("Gul'dan")>) triggering <TargetedAction: Summon(CARDS=<Hero ("Gul'dan")>)> targeting [Player(name='Player1', hero=<Hero ("Gul'dan")>)]
Player1 summons [<Hero ("Gul'dan")>]
Player(name='Player1', hero=<Hero ("Gul'dan")>) shuffles their deck
Player(name='Player2', hero=<Hero ('Malfurion Stormrage')>) triggering <TargetedAction: Summon(CARDS=<HeroPower ('Shapeshift')>)> targeting [Player(name='Player2', hero=<Hero ('Malfurion Stormrage')>)]
Player2 summons [<HeroPower ('Shapeshift')>]
Player(name='Player2', hero=<Hero ('Malfurion Stormrage')>) triggering <TargetedAction: Summon(CARDS=<Hero ('Malfurion Stormrage')>)> targeting [Player(name='Player2', hero=<Hero ('Mal
View enrage.log
[fireplace.utils]: Initializing a new game
[fireplace.entity]: Starting game BaseTestGame(players=(Player(name='Player1', hero=None), Player(name='Player2', hero=None)))
[fireplace.actions]: Player(name='Player1', hero=<Hero ('Rexxar')>) triggering <TargetedAction: Summon(CARDS=<HeroPower ('Steady Shot')>)> targeting [Player(name='Player1', hero=<Hero ('Rexxar')>)]
[fireplace.actions]: Player1 summons [<HeroPower ('Steady Shot')>]
[fireplace.actions]: Player(name='Player1', hero=<Hero ('Rexxar')>) triggering <TargetedAction: Summon(CARDS=<Hero ('Rexxar')>)> targeting [Player(name='Player1', hero=<Hero ('Rexxar')>)]
[fireplace.actions]: Player1 summons [<Hero ('Rexxar')>]
[fireplace.entity]: Player(name='Player1', hero=<Hero ('Rexxar')>) shuffles their deck
[fireplace.actions]: Player(name='Player2', hero=<Hero ('Malfurion Stormrage')>) triggering <TargetedAction: Summon(CARDS=<HeroPower ('Shapeshift')>)> targeting [Player(name='Player2', hero=<Hero ('Malfurion Stormrage')>)]
[fireplace.actions]: Player2 summo
View siege.py
def test_siege_engine():
game = prepare_game(WARRIOR, WARRIOR)
game.player1.hero.power.use()
assert game.player1.hero.armor == 2
siege = game.player1.give("GVG_086")
siege.play()
assert siege.atk == 5
assert siege.health == 5
game.end_turn()
View gist:d670f35084a714ecd5a7
def test_shaman():
game = prepare_game(SHAMAN, SHAMAN)
assert game.player1.hero.id is SHAMAN
assert len(game.player1.hero.power.data.entourage) == 4
# use hero power four times
for i in range(4):
assert len(game.player1.field) == i
assert game.player1.hero.power.is_usable()
game.player1.hero.power.use()
You can’t perform that action at this time.