Create a Chess Game with ReactJS - Part 7: Basic pawn rules
In this seventh part of the series we are going to create the basic rules for the pawns!
The code in this video can be found on this GitHub repository:
Timestamps:
0:00 Introduction
0:25 Adding black pawn movement
2:55 Prevent pawn movement when it is blocked
3:30 Creating tileIsOccupied function
6:44 Implementing logic for tileIsOccupied
8:18 Seperating special move and normal move for pawn
9:35 Implementing same rules for the black pawns
11:35 Refactoring pawn logic code
18:35 Result of the refactoring
1 view
0
0
5 months ago 00:04:15 1
PAIN - Shut Your Mouth (OFFICIAL MUSIC VIDEO)
5 months ago 00:03:54 1
Meet the Sniper In Real Life (TF2 Voice Actor)
5 months ago 00:03:04 1
Mortal Kombat 1 – Official Ermac Gameplay Trailer
5 months ago 00:38:31 1
“The TRUTH is coming out in the Baltimore bridge cyber attack“ Lara Logan | Redacted News
5 months ago 00:02:46 1
Star Wars Outlaws: Official Story Trailer
5 months ago 00:04:23 1
FEUERSCHWANZ - Valhalla Calling (Official Video) - Cover of @miracleofsound | Napalm Records