How janosfalke/yahtzee-in-c-sharp works
This is a Windows Forms Yahtzee game for playing one to four games at once. The player starts a game, rolls and keeps dice over up to three attempts, chooses an available scoring category and game card (or crosses out a category), and views end-of-game totals and scoreboard statistics. The sampled code shows UI orchestration, game-card scoring, and category value objects; dice handling and several UI details are only partially sampled, so those flows are included only where documented. There is no external persistence or service shown.
Main entry points: UI.cs Game controller · GameCard.cs Game card · Program.cs App startup · Item.cs Choice items
Components 11
Game UI
- App startup
Yahtzee_UI/Program.cs - Game controller
Yahtzee_UI/UI.cs - Choice items
Yahtzee_UI/Item.cs
Scoring
- Game card
Yahtzee_UI/GameCard.cs - Full house
Yahtzee_UI/FullHouse.cs - Small straight
Yahtzee_UI/SmallStreet.cs - Large straight
Yahtzee_UI/LargeStreet.cs - Yahtzee category
Yahtzee_UI/Yahtzee.cs
Results
- Scoreboard window
Yahtzee_UI/ScoreForm.cs - Game statistics
Yahtzee_UI/Score.cs
Other components
- Player
Connections 10
- Player → Game controller: plays
README.md - App startup → Game controller: launches
Yahtzee_UI/Program.cs - Game controller → Game card: creates and scores
Yahtzee_UI/UI.cs - Game controller → Choice items: uses selections
Yahtzee_UI/UI.cs - Game card → Full house: initializes
Yahtzee_UI/GameCard.cs - Game card → Small straight: initializes
Yahtzee_UI/GameCard.cs - Game card → Large straight: initializes
Yahtzee_UI/GameCard.cs - Game card → Yahtzee category: initializes
Yahtzee_UI/GameCard.cs - Game controller → Scoreboard window: opens
Yahtzee_UI/UI.cs - Game controller → Game statistics: creates records
Yahtzee_UI/UI.cs