Programming a Chess Game in C# | Part 11 – Game Over Menu II



Programming a Chess Game in C# | Part 11 – Game Over Menu II

Programming a Chess Game in C# | Part 11 - Game Over Menu II

Learn how to program a Chess game in C#!

Welcome to part 11 of my C# Chess tutorial.
Last time we finished designing our game over menu, but it doesn’t do anything yet!
In this part, we make it display the winner of the game and the reason why the game ended (checkmate or stalemate for now!).
The menu will also raise an event when the user clicks on the restart button or the exit button.
Once the menu is functional, we’ll make MainWindow display it on screen and respond appropriately when a button is clicked.

Assets:
https://ottobotcode.com/chess/ChessAssets.zip

Chapters:
0:00 – Plan
0:17 – Menu Options
1:11 – Button Clicks
2:18 – Winner Text
3:27 – WARNING!
4:04 – Player String
5:03 – Reason Text
7:30 – Modify Constructor
8:31 – Menu Container
9:31 – Is Menu On Screen?
9:56 – Ignore Moves
10:25 – Create Menu
11:11 – Respond To Clicks
12:19 – Restart Game
13:17 – Show Menu
13:52 – Hooray!
14:18 – Coming Soon…

Comments are closed.