Create a Chess Game with ReactJS - Part 16: Rook movement & attack

Опубликовано: 19 Май 2026
на канале: Frontend Coding
993
22

In this part we add the attacking logic for the rook.

The code in this video can be found on this GitHub repository:
https://github.com/FrontendCodingYT/c...

Timestamps:
0:00 Introduction
1:35 Horizontal movement
2:30 Question: rook moving into pieces
4:30 Checking if tile is occupied
7:50 Question: refactoring
8:00 Refactoring the isValidMove method
9:50 Creating pawn move method
12:52 Creating knight move method
14:02 Creating bishop and rook move method
17:15 Fixing spacings