Skip to content
This repository has been archived by the owner on Jan 11, 2018. It is now read-only.

Updated API to return actions #37

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

levinson
Copy link

I have updated the main turn function API to return zero or more actions to take. The bot will then queue these actions and schedule them to be performed. Once all the actions are performed, the turn function will be called again and the process repeats. The turn is ended when the turn function returns the empty table. I updated the existing LUA APIs to return actions instead of performing them directly. This replaces the long-running LUA method turn_start_function that was paused and resumed.

levinson added 18 commits March 22, 2014 11:16
…t of actions instead of performing them. Added some delay logic for playing out the queued actions.
…two implementations for CardAction and AttackAction. Updated related APIs.
…o longer needed with the new turn_action interface. turn_action returns a list of actions, that the bot will then play out, and then call turn action again until there are no more actions to take. turn_action can return zero (indicating to end the turn), one or many actions at a time.
…n to choose_turn_actions and do_mulligan to choose_mulligan_cards. Removed some unused code and cleaned up logging.
…performing the action. Added actions for MouseOverCard and MouseOffCard.
…eover actions since they weren't working. Goign to create separate branches for other features.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant