courageousillumination / deckr

A Card Game Engine for CMSC 22001
MIT License
6 stars 1 forks source link

Add triggered events #25

Closed courageousillumination closed 9 years ago

courageousillumination commented 9 years ago

In some of the more complicated card games there are triggered events. For example, in Dominion when I play an attack card, you have a chance to play a reaction card. We could hardcode this into play_action but that's ugly. We should probably expand the "@action" decorator so that it can take in a list of triggers or something similar.

courageousillumination commented 9 years ago

Kinda hacked instead of fully implemented, but done #63