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:16 Adding rook type to referee
2:43 Question: detecting horizontal and vertical movement
6:25 Checking passed tiles
9:05 Question: Stop checking when arrived
10:22 Refactoring vertical movement
12:45 Adding horizontal movement