CARDWEAVER

Dual Realms

TECH STACK

Tools & Systems

A comprehensive technology stack spanning machine vision, game development, networking, and backend services. Built from the ground up with performance and reliability as core principles.

Core Technologies

Production-grade tools and frameworks

C++20 SFML 3.0 CMake
Raspberry Pi OpenCV YOLO v5
ASP.NET Core Flask WebSockets
nlohmann/json Multithreading Audio Processing

Architecture Layers

How systems work together

🎮

Game Engine

SFML-based rendering, event handling, and game state management for responsive gameplay.

🔍

Vision Pipeline

Raspberry Pi with OpenCV and YOLO detection for real-time card recognition and classification.

🌐

Networking

WebSocket-based real-player PvP synchronization with robust error handling, mana state, and turn validation.

🎧

Audio System

Compressed audio streaming, voice chat integration, and real-time audio processing.

💾

Backend Services

ASP.NET Core API for persistence, logging, and backend business logic coordination.

🛠️

Development Tools

CMake build system, Doxygen documentation, and comprehensive logging for debugging.

Development Timeline

13 weeks of iterative development and refinement

Weeks 1-3: Foundation

Core card game loop and SFML rendering pipeline established.

Weeks 4-6: Vision

Raspberry Pi integration and YOLO detection model training and deployment.

Weeks 7-9: Features

PvP networking, card-to-mythical mapping, mana mechanics, and battle flow systems added.

Weeks 10-13: Polish

Audio, themes, logging refinement, and overall code quality improvements.

Quality Metrics

Performance targets and engineering standards

Performance Targets

20 FPS detection, <100ms card response time, 60 FPS rendering, and stable real-player PvP sync.

Code Quality

Doxygen documentation, named protocol helpers, modular architecture, comprehensive error handling.

Asynchronous Design

Detection and networking run independently so gameplay never stalls. Threads managed carefully for reliability.