This document describes the architecture and workflow of the card effect system within the Yu-Gi-Oh! Web Duel Interface. The system is responsible for handling the activation, chaining, and resolution of card effects according to Yu-Gi-Oh! rules. It integrates declarative effect definitions (partially implemented via YAML/JSON) with the core game engine logic.
The system aims to manage:
- Activation: Determining when and if a card effect can be activated.
- Chaining: Building a sequence of effects when multiple effects are activated in response to each other.
- Resolution: Executing the effects in the correct (Last-In, First-Out) order.