Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Implement playing minions in a specific position
Card.play() now has a new, optional `index` argument. If not provided, the minion will be appended to the end of the field (on the right).
- Loading branch information
1 parent
b8942c6
commit c5fa2eb
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c5fa2eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A
card.get_index()
helper would probably be helpful. I guess it's something likeplayer.field.index(card)
.c5fa2eb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might add a
zone_position
attribute to be consistent with Hearthstone. Right now that logic is in kettle.