Commit Graph

3 Commits

Author SHA1 Message Date
hyper 1bb290e60c docs(Game.CardWars): Add design documents for base game and factions
Replace the empty placeholder design.md with comprehensive
design-basegame.md
and design-factions.md detailing game rules, setup, and mechanics for
the
card game 魔烬纷争.
2026-07-22 11:36:09 +08:00
hypercross 91c6f4aa2c refactor: remove Source property from IRelationship
Remove the redundant `Source` property from `IRelationship` and its
implementations. Since the relationship component is inherently
stored on the source entity, the `Source` field was unnecessary and
required manual synchronization during deserialization.

This change simplifies the relationship model, reduces memory usage,
and removes the need for reflection-based fixups in the serializer.
2026-07-20 22:59:27 +08:00
hypercross 2de735498c feat: implement CardWars game engine
Implement the core CardWars game logic using an ECS-based architecture.
This includes:
- Card effect registry and various card effect implementations.
- Game phase management (Setup, Play, Flip, Scoring, Cleanup).
- Command system for player actions (PlayCard, FlipCard, etc.).
- Component-based game state and entity relationships.
- Automated game setup and scoring systems.
- Unit tests for game setup, card effects, and play logs.
2026-07-20 22:52:28 +08:00