CARD_TYPES
Defines all available card types in the game. There are six types organized into two cycles: elemental (Fuego, Agua, Planta) and spiritual (Luz, Sombra, Espíritu).Values
| Constant | Value | Description |
|---|---|---|
FUEGO | 'fuego' | Fire element |
AGUA | 'agua' | Water element |
PLANTA | 'planta' | Plant element |
LUZ | 'luz' | Light spiritual type |
SOMBRA | 'sombra' | Shadow spiritual type |
ESPIRITU | 'espiritu' | Spirit type |
Example
ADVANTAGES
Defines the type advantage map for combat resolution. Each card type has an advantage over exactly one other type, forming two separate rock-paper-scissors cycles.Type Advantage Cycles
Elemental Cycle:- Fuego beats Planta
- Planta beats Agua
- Agua beats Fuego
- Luz beats Sombra
- Sombra beats Espíritu
- Espíritu beats Luz
Structure
| Attacker Type | Advantage Against |
|---|---|
fuego | planta |
planta | agua |
agua | fuego |
luz | sombra |
sombra | espiritu |
espiritu | luz |
Example
GAME_CONFIG
Contains all game configuration constants that define core gameplay mechanics and limits.Configuration Values
Maximum number of cards a player can hold in their hand
Maximum number of cards that can be on the battlefield at once
Total number of cards in a player’s deck at game start
Time limit per turn in milliseconds (12 seconds)
Turn number when players must start attacking (turn 3)
Number of unique card types needed in essence collection to win
Total number of essences needed to win the game
Summary Table
| Constant | Value | Description |
|---|---|---|
MAX_HAND_SIZE | 4 | Maximum cards in hand |
MAX_FIELD_SIZE | 6 | Maximum cards on field |
INITIAL_DECK_SIZE | 48 | Cards in starting deck |
TURN_TIME_LIMIT_MS | 12000 | Turn timer (12 seconds) |
MANDATORY_ATTACK_TURN | 3 | Turn when attacks become mandatory |
UNIQUE_TYPES_TO_WIN | 6 | Unique types needed to win |
ESSENCES_TO_WIN | 6 | Total essences needed to win |
Example
Source
Frontend/src/helpers/constants.js:1-27