Create a Chess Game with ReactJS - Part 10: Refactoring
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
3 views
0
0
5 days ago 00:46:41 41
State of Play | February 12, 2025 [English]
1 week ago 00:13:22 2
Most Beautiful Moments - Women’s Pole Vault Golden Roof Challenge Innsbruck 2023 Athletics
1 week ago 00:09:44 1
Hot Beach Day in Zurich 4K-Switzerland Summer Hot Day 2024 HDR Flori Travel
1 week ago 00:04:06 2
Lord Conrad - Only You (Official Video) Shuffle/Freestyle Dance Music
1 week ago 03:00:00 1
ZEN GARDEN MUSIC: Japanese Melodies with Female Vocals and Relaxing Visuals
1 week ago 00:03:12 1
The “Turn Heads & Drop Jaws“ Maxi – Strapless, Sultry & Seriously Stunning! - YouTube
2 weeks ago 00:27:55 1
Alone Again?
2 weeks ago 00:03:01 2
Singing Ringing Tree, Burnley, Lancashire
2 weeks ago 00:02:33 5
💕🎸💞 Happy Valentine’s Day!💕🌞💖 Bird in Flight! by #vagotanulo & #botoslacibacsi