- 96
- 35 612
Frontend Road
Belgium
เข้าร่วมเมื่อ 28 ต.ค. 2023
We help you find your first job as a Frontend Developer!
Chess App - Train you Programming Logic #17 (final)
Let's practice our programming logic by developing a Chess Application using TypeScript and React!
This is one of the videos from a full series, where we create a chess application focused mainly on the game logic.
You can clone the complete code in: github.com/fe-road/react-chess
#developer #frontend #chess #typescript #logic #reactjs
-------------------------------------
View the other parts:
👉 Part #01 - th-cam.com/video/y38i_Bh8Z_c/w-d-xo.html
👉 Part #02 - th-cam.com/video/bNOPZmDr-fE/w-d-xo.html
👉 Part #03 - th-cam.com/video/odUZwBjgKCc/w-d-xo.html
👉 Part #04 - th-cam.com/video/iRtKe4PmDkw/w-d-xo.html
👉 Part #05 - th-cam.com/video/2cogLrxs7B8/w-d-xo.html
👉 Part #06 - th-cam.com/video/FPVJRqF0cl0/w-d-xo.html
👉 Part #07 - th-cam.com/video/IaPVSQ5NnnU/w-d-xo.html
👉 Part #08 - th-cam.com/video/kzKCS871D-0/w-d-xo.html
👉 Part #09 - th-cam.com/video/bKRRw3IrER0/w-d-xo.html
👉 Part #10 - th-cam.com/video/ppov_2J0Wcg/w-d-xo.html
👉 Part #11 - th-cam.com/video/RVDGVRm5-dg/w-d-xo.html
👉 Part #12 - th-cam.com/video/DZ6lGqAnV24/w-d-xo.html
👉 Part #13 - th-cam.com/video/38P51skiBi0/w-d-xo.html
👉 Part #14 - th-cam.com/video/blKnXkcZM-A/w-d-xo.html
👉 Part #15 - th-cam.com/video/RjDeGrbDaqY/w-d-xo.html
👉 Part #16 - th-cam.com/video/d6raymavB_M/w-d-xo.html
👉 Part #17 (final) - You are here!
-------------------------------------
Like - Follow & Subscribe:
◼️ TH-cam: www.youtube.com/@FrontendRoad
◼️ Instagram: frontend.road
◼️ Discord: discord.gg/h4QZ3P4y3B
This is one of the videos from a full series, where we create a chess application focused mainly on the game logic.
You can clone the complete code in: github.com/fe-road/react-chess
#developer #frontend #chess #typescript #logic #reactjs
-------------------------------------
View the other parts:
👉 Part #01 - th-cam.com/video/y38i_Bh8Z_c/w-d-xo.html
👉 Part #02 - th-cam.com/video/bNOPZmDr-fE/w-d-xo.html
👉 Part #03 - th-cam.com/video/odUZwBjgKCc/w-d-xo.html
👉 Part #04 - th-cam.com/video/iRtKe4PmDkw/w-d-xo.html
👉 Part #05 - th-cam.com/video/2cogLrxs7B8/w-d-xo.html
👉 Part #06 - th-cam.com/video/FPVJRqF0cl0/w-d-xo.html
👉 Part #07 - th-cam.com/video/IaPVSQ5NnnU/w-d-xo.html
👉 Part #08 - th-cam.com/video/kzKCS871D-0/w-d-xo.html
👉 Part #09 - th-cam.com/video/bKRRw3IrER0/w-d-xo.html
👉 Part #10 - th-cam.com/video/ppov_2J0Wcg/w-d-xo.html
👉 Part #11 - th-cam.com/video/RVDGVRm5-dg/w-d-xo.html
👉 Part #12 - th-cam.com/video/DZ6lGqAnV24/w-d-xo.html
👉 Part #13 - th-cam.com/video/38P51skiBi0/w-d-xo.html
👉 Part #14 - th-cam.com/video/blKnXkcZM-A/w-d-xo.html
👉 Part #15 - th-cam.com/video/RjDeGrbDaqY/w-d-xo.html
👉 Part #16 - th-cam.com/video/d6raymavB_M/w-d-xo.html
👉 Part #17 (final) - You are here!
-------------------------------------
Like - Follow & Subscribe:
◼️ TH-cam: www.youtube.com/@FrontendRoad
◼️ Instagram: frontend.road
◼️ Discord: discord.gg/h4QZ3P4y3B
มุมมอง: 354
วีดีโอ
Chess App - Train you Programming Logic #16
มุมมอง 7514 วันที่ผ่านมา
Let's practice our programming logic by developing a Chess Application using TypeScript and React! This is one of the videos from a full series, where we create a chess application focused mainly on the game logic. You can clone the complete code in: github.com/fe-road/react-chess #developer #frontend #chess #typescript #logic #reactjs View the other parts: 👉 Part #01 - th-cam.com/video/y38i_Bh...
Chess App - Train you Programming Logic #15
มุมมอง 9114 วันที่ผ่านมา
Let's practice our programming logic by developing a Chess Application using TypeScript and React! This is one of the videos from a full series, where we create a chess application focused mainly on the game logic. You can clone the complete code in: github.com/fe-road/react-chess #developer #frontend #chess #typescript #logic #reactjs View the other parts: 👉 Part #01 - th-cam.com/video/y38i_Bh...
Chess App - Train you Programming Logic #14
มุมมอง 12721 วันที่ผ่านมา
Let's practice our programming logic by developing a Chess Application using TypeScript and React! This is one of the videos from a full series, where we create a chess application focused mainly on the game logic. You can clone the complete code in: github.com/fe-road/react-chess #developer #frontend #chess #typescript #logic #reactjs View the other parts: 👉 Part #01 - th-cam.com/video/y38i_Bh...
Chess App - Train you Programming Logic #13
มุมมอง 18921 วันที่ผ่านมา
Let's practice our programming logic by developing a Chess Application using TypeScript and React! This is one of the videos from a full series, where we create a chess application focused mainly on the game logic. You can clone the complete code in: github.com/fe-road/react-chess #developer #frontend #chess #typescript #logic #reactjs View the other parts: 👉 Part #01 - th-cam.com/video/y38i_Bh...
Chess App - Train you Programming Logic #12
มุมมอง 32028 วันที่ผ่านมา
Let's practice our programming logic by developing a Chess Application using TypeScript and React! This is one of the videos from a full series, where we create a chess application focused mainly on the game logic. You can clone the complete code in: github.com/fe-road/react-chess #developer #frontend #chess #typescript #logic #reactjs View the other parts: 👉 Part #01 - th-cam.com/video/y38i_Bh...
Chess App - Train you Programming Logic #11
มุมมอง 140หลายเดือนก่อน
Let's practice our programming logic by developing a Chess Application using TypeScript and React! This is one of the videos from a full series, where we create a chess application focused mainly on the game logic. You can clone the complete code in: github.com/fe-road/react-chess #developer #frontend #chess #typescript #logic #reactjs View the other parts: 👉 Part #01 - th-cam.com/video/y38i_Bh...
Chess App - Train you Programming Logic #10
มุมมอง 188หลายเดือนก่อน
Let's practice our programming logic by developing a Chess Application using TypeScript and React! This is one of the videos from a full series, where we create a chess application focused mainly on the game logic. You can clone the complete code in: github.com/fe-road/react-chess #developer #frontend #chess #typescript #logic #reactjs View the other parts: 👉 Part #01 - th-cam.com/video/y38i_Bh...
Chess App - Train you Programming Logic #09
มุมมอง 232หลายเดือนก่อน
Let's practice our programming logic by developing a Chess Application using TypeScript and React! This is one of the videos from a full series, where we create a chess application focused mainly on the game logic. You can clone the complete code in: github.com/fe-road/react-chess #developer #frontend #chess #typescript #logic #reactjs View the other parts: 👉 Part #01 - th-cam.com/video/y38i_Bh...
Chess App - Train you Programming Logic #08
มุมมอง 444หลายเดือนก่อน
Let's practice our programming logic by developing a Chess Application using TypeScript and React! This is one of the videos from a full series, where we create a chess application focused mainly on the game logic. You can clone the complete code in: github.com/fe-road/react-chess #developer #frontend #chess #typescript #logic #reactjs View the other parts: 👉 Part #01 - th-cam.com/video/y38i_Bh...
Chess App - Train you Programming Logic #07
มุมมอง 188หลายเดือนก่อน
Chess App - Train you Programming Logic #07
Chess App - Train you Programming Logic #06
มุมมอง 716หลายเดือนก่อน
Chess App - Train you Programming Logic #06
Chess App - Train you Programming Logic #05
มุมมอง 135หลายเดือนก่อน
Chess App - Train you Programming Logic #05
Chess App - Train you Programming Logic #04
มุมมอง 344หลายเดือนก่อน
Chess App - Train you Programming Logic #04
Chess App - Train you Programming Logic #03
มุมมอง 150หลายเดือนก่อน
Chess App - Train you Programming Logic #03
Chess App - Train you Programming Logic #02
มุมมอง 4222 หลายเดือนก่อน
Chess App - Train you Programming Logic #02
Chess App - Train you Programming Logic #01
มุมมอง 1.3K2 หลายเดือนก่อน
Chess App - Train you Programming Logic #01
How to Clone Google Homepage with HTML/CSS - Part #05
มุมมอง 986 หลายเดือนก่อน
How to Clone Google Homepage with HTML/CSS - Part #05
How to Clone Google Homepage with HTML/CSS - Part #04
มุมมอง 296 หลายเดือนก่อน
How to Clone Google Homepage with HTML/CSS - Part #04
How to Clone Google Homepage with HTML/CSS - Part #03
มุมมอง 496 หลายเดือนก่อน
How to Clone Google Homepage with HTML/CSS - Part #03
How to Clone Google Homepage with HTML/CSS - Part #02
มุมมอง 446 หลายเดือนก่อน
How to Clone Google Homepage with HTML/CSS - Part #02
How to Clone Google Homepage with HTML/CSS - Part #01
มุมมอง 2807 หลายเดือนก่อน
How to Clone Google Homepage with HTML/CSS - Part #01
Wow just found it... React with typescript
Good luck in your journey!
@FrontendRoad but I was interested in function component not the old class base stuff in React
I've updated in the following videos :) and do not worry, I use hooks and modern React in the videos
does the board support drag and drop?
No, as I focused on the programming logic and not interface/UX, I didn't implement a drag and drop. Maybe a small challenge for those who followed along? 😁
Would you do a 1hr overview of the whole coding journey? I'd love to see it edited and refined into single video!
I'd love to do that, it's great idea, thank you!
1st. :)
Are you going to be doing any networking/matchmaking this project? Or creating a CPU opponent?
No networking/matchmaking planned to be honest, because the idea of the project is to focus on programming logic. However, the CPU component, I have to say I'd very much wish to do so, it's quite a nice suggestion, but I think this deserves a project of its own, specially as the series is already quite big (although nearing the end of it).
@@FrontendRoad Got it. Hopefully you'll dive into those in another series. Ever thought about building the AI opponent on top of this current project? I think I'd be interesting to see a new feature like that get added to this already existing base.
🥰wonderful
Thank you! 😊
Thank you for your efforts
Thank you for the support!
some day if i learn ts i will for sure make this. 🤞
Good luck on your learning journey!
can i send you a github link and review it for me i tried the same thing a year ago
Gonna start this series after watching Complete Web Dev Course
Good luck with your course!
@@FrontendRoad thank you brother 🙂
Excellent Work, keep going
Thank you! Will do!
Amazing series brother, I've been watching all the episodes and there's really valuable insight in each one. Thank you! 🙌
So glad it's been helping you! Thank you very much for the support!
Amazing work. For a person who love playing chess and knows little about software development, this is gold. Appreciate your work. If someone has to build same thing in Python, what frameworks you would suggest?
Much appreciated! I don't have much experience with Python, so my advice for framework would be flawed unfortunately. However, what I would do is pick a framework only for the visual parts of it - be it desktop (like Flask) or web based (like Django) - and write in full the logic of the app by yourself. The purpose here is to practice the programming logic, if you would like to develop a real world chess application, then you should use one of the many already created chess engines for it. In summary, don't focus about the framework, but focus on writing the logic yourself :)
Amazing series , keep doing it !
Thank you! Will do!
Great series!Just subscribed. & how many more videos to complete the series ?
Thank you so much for the support! I can't the precise number yet, as I didn't finish editing all of them, but the full series spans around 10 more videos, the next 4-5 ones should cover most of the chess application, and then we are going for the weird movements (like castling, en passant, etc) and some refactor.
@@FrontendRoad superb!Will be eagerly waiting.
So it's only use case is when you want to access elements with vanilla without going through the virtual Dom? So I still have to use usestate if I want to read the text written in the input, right?
Yes, exactly. Although you could access the value via vanilla JS, for 99,9% of the cases you don't want to do that.
@FrontendRoad I'm trying to understand why I should use useRef, because I don't find it that useful, I understand that you access elements and that it doesn't cause re-renders. Other than that what can I use it for? Internet says animations but I don't know...
Overall you won't use that much. Overall I just use it whenever I can't do something easily with the other hooks. For example the focus function in this video. Sometimes when you use 3rd party libraries you will need it to reference the element. You could also use for fields in the form, because you can get the values only once on submit, without re-rendering all the time due to useState hook. Several examples, but the truth is: You use it when you need it, and you will notice when the moment comes
Woo. Recently there is the world chess championship 2024. TH-cam algorithm for a video to make a chess app. Nice to take a look.😊
Nice!! Wish you success in building your app (and your chess matches!)
@FrontendRoad not me. I am just a viewer. Anyway, will take a look. Tks~
Thank you very much for the tutorial, an excellent series of tutorials. Explaining the strategy and logic step by step is outstanding. Many times this is not explained, and it is the cornerstone for developing the logic to achieve independence in the future when creating new applications and working more efficiently.
Thank you very much for the support! I try my best to explain the thinking process behind the decisions
i like the idea of building chess app , i am following that tutorial
That's great to hear! Part 2 is coming tomorrow!
kkkkkkkkk
Simple and efficient, thanks for the explanation
Thank you!! 😊
Hush... You're blowing my cover 😂
Oops 😶😶
“How are you awake” -uhm..i sleep at night
Also a good answer 😅
Nice explanation, thanks
Glad to help! 😁
You’ve seen nothing, I’m a “junior” and I have to rewrite glue jobs that my senior has coded. When you see a function that takes no arguments and returns a hard-coded string, you know you’re in hell.
I feel you, it's definitely not easy. Some codebases can be extremely frustrating to work on 😵💫😵💫
Polska🗣️🔥🔥
Thanks a lot Mr. Philip this is my first HTML,CSS project .Watched the entire playlist and made my own home page . Once again Thanks to you from younger brother lives in Kerala , India 🇮🇳
It's a pleasure to read this and know I could contribute a bit with your dev journey! Wish you all the best 🙌
Thx (pin plz)
Bravo 👏
bro doesnt know the difference between a function and a property in css and is trying to teach others 👀
Indeed, I used the wrong terminology in the video. Well spotted! Also, it was well spotted that I'm trying to teach others, even if I make mistakes 😉
I notice the original had the chage happen at 768px, is that the same as 4vw + 1rem?
No, it's not the same. That's the magic of clamp with vw, it won't happen on specific screen sizes, but all of them. That's the reason we use vw, we are setting a font size relative to the screen size. How the conversion from vw to px happens is a topic for another video 😆, but that's the main idea. Is it clear?
@FrontendRoad I see, this is a more dynamic way to do the scaling. Fair enough. I'll look forward to that video then. St the moment the numbers seem kinda arbitrary.
You should have shown the outputs
You are right! I'll keep this in mind for the next videos!
JS is so weird 😭
Yes, let's say it had its peculiarities 😅
Lmao
Why if item is duplicate?
There are 2 scenarios here then: First if the item is duplicated in your data and you don't want/can't clean it. Second if you want to show any item more than once, even if it's not duplicated. In either case, the best solution would be to generate a random ID for each element you want to show, using libraries like uuid, for example.
@@FrontendRoad yeah Thanks for the response..
theme name?
Hello! I'm using Atom One Dark for this video :)
It's using React. You can fix it by not using React
Every library/framework has it's quirks, unfortunately React is no exception. If you don't mind me asking, which framework you prefer to work with?
I found the error for the heading but not the div
That's good! Hope that the video helped you and maybe you will apply this in the future 😁
Been using Typescript all my life, looking at this code hurts for some reason
Line 2 then line 1. Event loop
I disagreee with you. Ternary operators are the evil. IMHO a if statement and no else would work the best, easier for the junior dev that needs to maintain the code and avoid the ternary
Totally understandable. I know some other developers who also are not a big fan of ternary operators. I, myself, quite like them as long as they are not nested. For this particular example, I think 2 returns are a bit overkill, but in a more complex component with other logic, it can be a good solution indeed :)
@@FrontendRoad I had similar issues in the past, I personally like to see what is new on the language and use it. But the newcomer on the language will have the basics (when it have it), so the simpler the code, the easier it is to maintain. Regarding the ternary, they are evil. It starts with a single ternary, a bad code review and you have a nested ternary, the next person that will iterate on the code will not even question and append another ternary option there, and the cycle repeats. Seen this too often to be good.
@@ShinSpiegel I can understand where you are coming from. That's why I think it's so important to have a good pipeline and branch protections in place, with tools like Sonarqube running and preventing any bad code (for example nested ternaries) from going into the default/main branch.
@@FrontendRoad Agreed, but when it's Friday, the regular dev just wants to push the code, things get disabled "because we need to push". So I work on the other side, avoid this in the first place.
@@ShinSpiegeljust because you don't know how to use ternary operators does not mean that they are bad 😂
Yo, cool. I started learning React a few days ago. That video is useful for me 👏
This is not a Javascript problem, this is part of the IEEE 754 standard. This will happen in other languages if you represent a number as a float.
Yes, precisely. As I mentioned, this happens in other programming languages as well, however I didn't mention IEEE 754, so thanks for adding that! :)
interesting. any beginner (complete noob) couses you would recommend?
I'm currently preparing some exciting content to allow you to go from complete noob to your first job as a developer. So stay tuned :)
Thank you. If I ever don't want my code to be readable, I'll use this to its full extent.
You know the idea of such video is to bring clarification on a specific topic, right? I'm not showing any real world application code here