How mihlalimandoyi-hub/spincode2 works
SpinCode is a cross-platform MAUI code-breaking game. The main player journey is to enter a round, submit guesses for feedback, and optionally pursue hints, achievements, and leaderboard results. The graph includes those documented product areas, but the main page implementations were not excerpted, so their links to game services are shown as unverified. Local achievement and leaderboard persistence, and the spin engine’s peg-status model, are directly supported by excerpts.
Main entry points: GamePage.xaml.cs Game Page · LeaderboardService.cs Leaderboard Service · AchievementService.cs Achievement Service · WelcomePage.xaml.cs Welcome Page
Components 16
App Shell
- MAUI Bootstrap
SpinCode/MauiProgram.cs - Application
SpinCode/App.xaml.cs - Navigation Shell
SpinCode/AppShell.xaml.cs - Welcome Page
SpinCode/Pages/WelcomePage.xaml.cs
Game Play
- Game Page
SpinCode/Pages/GamePage.xaml.cs - Spin Engine
SpinCode/Services/SpinEngine.cs - Hint Bank
SpinCode/Services/HintBankService.cs
Player Progress
- Leaderboard Page
SpinCode/Pages/LeaderboardPage.xaml.cs - Leaderboard Service
SpinCode/Services/LeaderboardService.cs - Achievement Service
SpinCode/Services/AchievementService.cs - MAUI Preferences
Game Models
- Guess Result
SpinCode/Models/SpinResult.cs - Peg Status
SpinCode/Models/PegStatus.cs - Leaderboard Entry
SpinCode/Models/LeaderboardEntry.cs - Achievement
SpinCode/Models/Achievement.cs
Other components
- Player
Connections 16
- Player → Welcome Page: opens app
- MAUI Bootstrap → Application: creates app
- Application → Navigation Shell: hosts navigation
- Navigation Shell → Welcome Page: routes to
- Welcome Page → Game Page: starts round
- Game Page → Spin Engine: evaluates guesses
- Game Page → Hint Bank: requests hints
- Spin Engine → Guess Result: produces feedback
- Guess Result → Peg Status: uses statuses
SpinCode/Models/SpinResult.cs - Game Page → Achievement Service: records wins
- Achievement Service → Achievement: returns unlocks
SpinCode/Services/AchievementService.cs - Achievement Service → MAUI Preferences: reads and writes
SpinCode/Services/AchievementService.cs - Game Page → Leaderboard Service: saves wins
- Leaderboard Page → Leaderboard Service: loads rankings
- Leaderboard Service → Leaderboard Entry: stores entries
SpinCode/Services/LeaderboardService.cs - Leaderboard Service → MAUI Preferences: reads and writes
SpinCode/Services/LeaderboardService.cs