How aimanmughal2267-source/dsa_cca_suduko works
SudokuSerenity is a desktop Sudoku game with multiple grid sizes, daily and relaxed play, guidance and undo/redo, player profiles, saved sessions, statistics, rankings, achievements, and a garden that grows with completed puzzles. The workflow starts in the SFML UI, enters a game session, and records completed play into history, scores, and profile progress. Edges are limited to relationships visible in the supplied excerpts or SOURCE INDEX; several screen and persistence internals were not sampled, so those details are left out.
Main entry points: UIManager.cpp UI manager · Game.cpp Game session · ds Core data structures · Garden.cpp Progress garden
Components 24
App and screens
- Application entry
SudokuSerenity/src/main.cpp - UI manager
SudokuSerenity/src/UIManager.cpp - Home screen
SudokuSerenity/src/screens/HomeScreen.cpp - New-game screen
SudokuSerenity/src/screens/NewGameScreen.cpp - Game screen
SudokuSerenity/src/screens/GameScreen.cpp - Result screen
SudokuSerenity/src/screens/ResultScreen.cpp - Statistics screen
SudokuSerenity/src/screens/StatsScreen.cpp - Leaderboard screen
SudokuSerenity/src/screens/LeaderboardScreen.cpp - Profile screen
SudokuSerenity/src/screens/ProfileScreen.cpp
Puzzle play
- Game session
SudokuSerenity/src/Game.cpp - Puzzle generation
SudokuSerenity/src/PuzzleGenerator.cpp - Sudoku board
SudokuSerenity/src/SudokuBoard.cpp - Sudoku solver
SudokuSerenity/src/SudokuSolver.cpp - Constraint graph
SudokuSerenity/src/ConstraintGraph.cpp
Player records
- Player profiles
SudokuSerenity/src/Player.cpp - Game history
SudokuSerenity/src/History.cpp - Score manager
SudokuSerenity/src/ScoreManager.cpp - Leaderboard ranking
SudokuSerenity/src/Leaderboard.cpp - Achievements
SudokuSerenity/src/Achievements.cpp
Visual features
- Progress garden
SudokuSerenity/src/Garden.cpp - Drawing helpers
SudokuSerenity/src/Draw.cpp - Music player
SudokuSerenity/src/Audio.cpp
Data structures
- Core data structures
SudokuSerenity/include/ds
Other components
- Player
Connections 32
- Player → Application entry: launches
SudokuSerenity/src/main.cpp - Application entry → UI manager: runs
SudokuSerenity/src/main.cpp - UI manager → Home screen: creates and routes
SudokuSerenity/src/UIManager.cpp - UI manager → New-game screen: creates and routes
SudokuSerenity/src/UIManager.cpp - UI manager → Game screen: creates and routes
SudokuSerenity/src/UIManager.cpp - UI manager → Result screen: creates and routes
SudokuSerenity/src/UIManager.cpp - UI manager → Statistics screen: creates and routes
SudokuSerenity/src/UIManager.cpp - UI manager → Leaderboard screen: creates and routes
SudokuSerenity/src/UIManager.cpp - UI manager → Profile screen: creates and routes
SudokuSerenity/src/UIManager.cpp - UI manager → Game session: starts and resumes
SudokuSerenity/src/UIManager.cpp - UI manager → Player profiles: loads and updates
SudokuSerenity/src/UIManager.cpp - UI manager → Game history: loads and records
SudokuSerenity/src/UIManager.cpp - UI manager → Score manager: loads and adds scores
SudokuSerenity/src/UIManager.cpp - UI manager → Leaderboard ranking: builds rankings
SudokuSerenity/src/UIManager.cpp - UI manager → Achievements: records achievements
SudokuSerenity/src/UIManager.cpp - UI manager → Progress garden: calculates progress stage
SudokuSerenity/src/UIManager.cpp - UI manager → Music player: starts music
SudokuSerenity/src/UIManager.cpp - Game session → Puzzle generation: uses puzzles
- Game session → Sudoku board: stores grid state
- Game session → Sudoku solver: solves on give-up
SudokuSerenity/src/Game.cpp - Game session → Constraint graph: checks conflicts
SudokuSerenity/src/Game.cpp - Game session → Score manager: computes score
SudokuSerenity/src/Game.cpp - Game screen → Game session: handles game actions
- Score manager → Core data structures: uses BST
- Player profiles → Core data structures: uses hash table
- Game history → Core data structures: uses linked list
- Leaderboard ranking → Core data structures: uses heap
- Constraint graph → Core data structures: uses graph
SudokuSerenity/include/ds/Graph.h - Drawing helpers → Achievements: draws badges
SudokuSerenity/src/Draw.cpp - Home screen → Progress garden: shows garden
SudokuSerenity/src/screens/HomeScreen.cpp - Profile screen → Progress garden: shows garden progress
SudokuSerenity/src/screens/ProfileScreen.cpp - Statistics screen → Progress garden: shows garden progress
SudokuSerenity/src/screens/StatsScreen.cpp