Gwent Pro is a high-performance, turn-based strategic card game. Developed as a cornerstone academic project for the Faculty of Mathematics and Computer Science (MATCOM) at the University of Havana, it showcases advanced OOP principles within the Unity engine.
(Recommendation: Add screenshots or a GIF here)
- Game Engine: Unity 2022 LTS.
- Scripting: C# (.NET Framework).
- Design Pattern: Data-Driven Design using ScriptableObjects.
- Version Control: Git for iterative development and deployment.
The codebase is modularized into 24 distinct scripts to ensure separation of concerns:
GameManager.cs: Orchestrates the global state machine and round transitions.Card.cs: Abstract data layer for card entities, decoupling visual representation from core data.Effect.cs: A static utility class housing all ability logic, invoked via delegates.DisplayCard.cs: Handles runtime UI updates and dynamic sprite loading.
- Delegate-Based Skill Execution: Instead of complex
switchstatements, skills are assigned via method references (delegates), allowing for O(1) effect triggering. - Event-Driven Interaction: Uses Unity's
IDropHandlerinterface to manage complex card-to-row validation logic based on faction and card type.
The project is compiled and available for immediate testing.
- Download and extract the
.rarpackage. - Launch
GwentPro.exe.
- Alejandro López Castro - Computer Science Student, University of Havana.
Developed during an intensive 4-week sprint, focusing on mastering Object-Oriented Programming and Software Architecture in game development.