How danielriano-cpu/sweet-crush-informatica2 works
Sweet Crush is a console match-three game. The player chooses a board size and uses a menu to remove a tile or add/remove rows and columns; the game resolves matches and cascades, then displays board state and score. The map separates interaction, match resolution, board operations, and compact bit-level representation. Evidence is limited to the README’s product name and the sampled C++ files; no additional capabilities are documented.
Main entry points: main.cpp Game menu · juego.cpp Match and cascades · tablero.cpp Packed board access · marcador.cpp Match markers
Components 8
Console interaction
- Game menu
main.cpp - State display
juego.cpp
Match gameplay
- Match and cascades
juego.cpp - Match markers
marcador.cpp
Board management
- Board operations
tablero.cpp
Packed representation
- Packed board access
tablero.cpp - Bit access
bits.cpp
Other components
- Player
Connections 11
- Player → Game menu: chooses moves
main.cpp - Game menu → Board operations: creates or resizes
main.cpp - Game menu → Match and cascades: requests moves
main.cpp - Game menu → State display: shows state
main.cpp - Match and cascades → Board operations: reads and updates
juego.cpp - Match and cascades → Match markers: marks matches
juego.cpp - Match and cascades → Packed board access: reads and writes tiles
juego.cpp - Board operations → Packed board access: accesses cells
tablero.cpp - Packed board access → Bit access: reads and writes bits
tablero.cpp - Match markers → Bit access: stores marker bits
marcador.cpp - State display → Packed board access: reads tiles
juego.cpp