Myvideo

Guest

Login

Create a Chess Game with ReactJS - Part 10: Refactoring

Uploaded By: Myvideo
3 views
0
0 votes
0

In this part we are going to refactor the code! The code in this video can be found on this GitHub repository: Timestamps: 0:00 Introduction 0:42 Creating constants file 1:05 Horizontal and vertical axis 1:57 Piece interface 2:05 TeamType and PieceType 2:52 InitialBoardState 5:50 Creating position interface 6:46 Replace x and y with position 9:30 Replacing GridX and GridY with position 10:25 Fixing the references 13:50 Creating grid size variable 14:45 Caps locking constants 15:10 Fixing the references 15:40 Replacing forEach with find function 16:37 DropPiece function 18:25 Talking about Redux 20:30 Creating same position function 21:20 Using the function 23:35 Referee use positions 24:20 Updating the statements 26:58 Updating en passant check 27:35 Function start with small letter

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later