FizzerWL / WarLight.AI

AI used for the game Warzone, located at https://www.warzone.com. See how to use this project at the WarLight blog at https://www.warlight.net/blog/index.php/2016/02/the-warlight-ai-goes-open-source/
20 stars 13 forks source link

Make the AI capable to play cards #3

Closed avioane closed 8 years ago

avioane commented 8 years ago

Add a nice data structure for the cards. Some cards like the reinforcement card or the abandon card have to have some properties about how strong they are while for example the Order prio card is generic. What we need is an easy function of the kind: public List getCards(CardType type); with CardType being an Enum containing all types. Maybe we want to add two boolean variables to the cards named "PlayedByTeammate" and "PlayedByMyself".

Fizzer added the "PlayCardsTask" however this isn't how I think about cards. Instead the already available tasks should get enriched to be capable to play cards. Please integrate the the Order priority and / or the order delay card already into the the MovesScheduler.