
I Built A Snake Game By Reversing A Linked List (JavaScript & React project tutorial)
Clément Mihailescu
Views: 76425
Like: 2270
I combined algorithms and web development for the best software engineering project: a Snake game built in JavaScript and React that reverses a linked list. This video serves as a tutorial for the project, which happens to be a great beginner JavaScript project. The project’s source code can be found here:
Create React App Instructions:
0:00 | Preview
0:19 | Introduction
1:58 | Project Overview
3:08 | Project Setup
5:18 | Project TODOs
6:58 | Tutorial
39:53 | Reversing A Linked List!
46:33 | Final Product
47:53 | Conclusion
AlgoExpert:
SystemsExpert:
My LinkedIn:
My Instagram:
My Twitter:
Prepping for coding interviews or systems design interviews? Practice with hundreds of video explanations of popular interview questions and a full-fledged coding workspace on AlgoExpert – – and use the promo code “clem” for a discount on the platform!
05.01.2023
Impressive, but can you build a project that involves reversing a binary tree?
You took Ben Awad too seriously😂
love this format of building stuff every once and a while clem!
move the end node to what the direction is relative to the start node
Thanks for this 🙂
Please take Google interview of @CodeWithHarry
Great AlgoExpert from India
Swallow ur spit.
your gf is gonna be so proud
Is that jiren on your desktop? Please tell me it's Jiren
20:21 why is this not a switch statement or a class :O
This is great ! Pls do more "tutorial" series
They true nerd builds snake game by reversing a linked list. Bye, I need to deal with my terrible imposter syndrome now
Why am I getting an algoexpert ad right before watching algoexpert 😂😂😂
Java be like: Writing 1 millions lines and program still not working …
Python better =))
God bless you if ur reading this comment!
22:30 This is what happens if you don't test your code
Hi Clément,
Please try to do a git commit on each baby steps. It will be really helpful.
Really nice and refreshing video, awesome Clem !
Wow! It's working, how did I do that. it's magical working.
24:20 "if you touch yourself you die !" where have i heard that before xD xD xD
"I think that I should be able to get through this in like, a couple of hours at most"
Some amount of time later
"Ok so I have this weird bug in my code. I don't really understand why it's happening"
Relatable.
31:22 "Oh… Wait! Why is this working…?!" 😄
Could you add this concept to AlgoExpert? Actual small projects based on the Algorithm problems in AlgoExpert?
Videos like these make me go for algoexpert.
Way to go man!
ex-google engineer creating a snake game!
Frustration with coding what makes a programmer good, How many hours you built it?
Clement you are wow please can I get your twitter handle 🙏🏽🙏🏽
why not use canvas?
Why my code works magically, but it's awesome. lol😀
The innuendo is astonishing 😂
First time I've heard "leave it as an exercise to the v i e w e r", haha. And now I know the main motivation for 'leaving it as an exercise': textbook authors just get tired and have other shit to do.
I like this type of video . Please keep it up
Clement i have a question is it possible for you to work from home as a software engineer?
any Promo Code for algoexpert
Keep this stuff coming Clem!
Can RTX 3090 run this game?
Entertaining stuff! Now code an AI to play the game 🙂
Wow!! I never knew someone had the same idea, I thought about it too when I started learning DSA but I couldn't implement it
I looked at the thumbnail and nearly threw up. in a good way tho
Thank you very very for showing that struggeling and getting annoying Bugs can even happen to such advanced people. Watching people get through their Code without any problems can give the feeling of being really far away from what a programmer should be able to handle
This is the perfect example that job interview problems describe the most idiotic way to solve daily tasks.
Pretty refreshing to see that an experienced programmer/entrepreneur like you can get stuck/frustrated on a "simple" bug… happens to me all the time at work!
~ "If you're really stuck on something, move onto something else and come back to it with a pair of fresh eyes"
i'll grow your snake
@17:10 stackoverflow detected
why are you fast forwarding thats so unnoying
Really curious about how long it really took – (imposter syndrome)
Game is still kinda broken. When you hit the wall, the snake stops alright, but when u press a direction key it starts moving again despite gameover. Please solve this. Thanks.
ah I learn something new everyday. When I did a snakegame, I used an array for the snake, [{x:1,y:1},{x:1,y:2}] etc.. and then I just shifted the array 1 object, and inserted the new position for the head. and if the snake eat something, I did not shift the array, and made it one object longer.
24:21 lol 😀 24:37 LOL 😀
proud to BE ROMANIAN
I had an idea of creating small projects as i go thru leetcode challenges, but that proved to be very challenging to me. would be nice if you could create a visualizer for leetcode challenegs – that would help me ( and probably other devs) tremendously