Programming a Chess Game in C# | Part 15 - Pause & Restart

Опубликовано: 22 Март 2026
на канале: OttoBotCode
2,713
63

Learn how to program a Chess game in C#!

Welcome to part 15 of my C# Chess tutorial.
A game of Chess can end because one player resigns or both players agree to a draw. However, there's currently no way to restart the game before either checkmate or stalemate occurs. In this part, we add a simply "PauseMenu" which takes care of that issue. The menu can be opened at any time and it contains a "Restart" button for starting a new game.

Assets:
https://ottobotcode.com/chess/ChessAs...

Source code is available here:
  / 78701  

Chapters:
0:00 - Resign & Agreement By Agreement
0:42 - Pause Menu Design
5:18 - Pause Menu Behaviour
6:04 - Show From MainWindow
8:37 - Finished Menu!