Learn how to program a Chess game in C#!
Welcome to part 5 of my C# Chess tutorial.
It is now time to generate moves for all chess pieces!
In this video we begin by creating a base class for all moves and a concrete implementation for simple or "normal" moves. With that in place, we write move generation code for the Bishop, Rook and Queen which all move following a general pattern.
Assets:
https://ottobotcode.com/chess/ChessAs...
Source code is available here:
/ 78701
Chapters:
0:00 - Plan
0:19 - MoveType Enum
1:58 - Move Base Class
3:46 - NormalMove Implementation
5:35 - Executing Normal Moves
6:40 - Generating Moves
7:48 - Movement Pattern
8:04 - Find Reachable Positions
11:29 - Multiple Directions
12:30 - Bishop Moves
14:41 - Rook Moves
15:35 - Queen Moves
16:49 - Success!