How enigmaf17/proyecto-interfaces works
UNO is a Windows Forms game for three players, with C# game rules and a Python FastAPI service that persists matches and moves in MySQL. The main workflow is user actions in the game UI, rule execution through the controller and game model, then API logging and persistence. The README documents additional history/statistics and match-finalization capabilities. API internals were not excerpted, so endpoint-to-database behavior is shown only at the documented service boundary.
Main entry points: Form1.cs Game table · Partida.cs Match rules · ControladorPartida.cs Game controller · ApiCliente.cs API client
Components 15
Game interface
- Game table
UnoUI/Form1.cs - Loading screen
UnoUI/FormCarga.cs - Color picker
UnoUI/FormElegirColor.cs - History view
UnoUI/FormHistorial.cs - UI entry point
UnoUI/Program.cs
Game rules
- Game controller
UnoLogica/ControladorPartida.cs - Match rules
UnoLogica/Partida.cs - Deck
UnoLogica/Mazo.cs - Card model
UnoLogica/Carta.cs - Player model
UnoLogica/Jugador.cs
Persistence service
- API client
UnoLogica/ApiCliente.cs - FastAPI service
api/main.py
Database
- Database schema
database/schema.sql - MySQL
Other components
- Player
Connections 17
- Player → Game table: plays through
README.md - UI entry point → Game table: opens
UnoUI/Program.cs - Game table → Game controller: dispatches actions
README.md - Game table → Color picker: opens for wilds
UnoUI/Form1.cs - Game table → History view: opens history
UnoUI/Form1.cs - Game table → Loading screen: shows loading
UnoUI/Form1.cs - Game controller → Match rules: applies rules
UnoLogica/ControladorPartida.cs - Game controller → API client: records match and moves
UnoLogica/ControladorPartida.cs - Match rules → Deck: draws and reshuffles
UnoLogica/Partida.cs - Match rules → Player model: updates hands and turns
UnoLogica/Partida.cs - Match rules → Card model: checks played cards
UnoLogica/Partida.cs - Deck → Card model: creates and deals
UnoLogica/Mazo.cs - Player model → Card model: holds cards
UnoLogica/Jugador.cs - API client → FastAPI service: calls HTTP endpoints
UnoLogica/ApiCliente.cs - History view → API client: loads player statistics
UnoUI/FormHistorial.cs - FastAPI service → MySQL: reads and writes
README.md - Database schema → MySQL: defines tables
README.md