/Yahtzee-in-C-Sharp

Yahtzee with an UI built with C# and .NET (2020)

Primary LanguageC#

Yahtzee in C# and .NET

Yahtzee with an UI built with C# and .NET (2020)

Explication

This project was my first project at all with C# and .NET. I already did some work with Java so it wasn't to difficult. I decided to realise this Yahtzee UI to show an example of a beginner project and my terms of programming.

The objective of Yahtzee is to score points by rolling five dice to make certain combinations. The dice can be rolled up to three times in a turn to try to make various scoring combinations and dice must remain in the box. A game consists of thirteen rounds. After each round the player chooses which scoring category is to be used for that round. Once a category has been used in the game, it cannot be used again. The scoring categories have varying point values, some of which are fixed values and others for which the score depends on the value of the dice. A Yahtzee is five-of-a-kind and scores 50 points, the highest of any category. ( -Wikipedia)

UI

The UI was created with Windows-Form-App (.NET Framework).

UI Overall

Overall explained

UI Overall explained

1. Formular to choose the number of games to play (1-4) [before the game]

2. Section of the dice

3. Formular to keep rolling the dice or stop if the result is wanted

4. Formular to decide where to put the result and in which game

5. Section of the Gamecard

6. Button to show the Scoreboard

Dice

Dice

Click on the dice you want to keep.

You can undo it with clicking again.

The selection is reset on every attempt.

Gamecard

Gamecard

Interactions

Insert result

If you can insert the result you have to choose what to take

Then choose the game number and press OK

Cross out

If you cannot insert anywhere you have to cross out

After choosing the game number you will see a new cross out select form

You choose what to cross out and press OK (in the Gamecard it will be represented by a "-")

End of the game

End of the game

Your total score, average score and number of yahtzees are shown (more details in the scoreboard)

You can decide if you want to continue to play (a new round)

Or if you want to quit the application

Scoreboard

Scoreboard

Multiple statistics: Game number, number of games, average of upper section points, average of lower section points, average points and total points

How to play

Choose the game number and press PLAY (Gamecard will be generated)

You roll the dice and insert the results with the formular

That's all !

2020 © Janos Falke