Learn to Code

Daniel Shiffman makes videos on how to code!

The Coding Train features "creative coding" video tutorials with new ones released every week.


2048 - Part 4

01 Mar 2018

In this multi-part coding challenge, I attempt to code the sliding puzzle game 2048 in JavaScript using canvas and p5.js. In part 4 of my 2048 coding challenge, I attempt but mostly fail to improve the visuals of the game, fix a bug and refactor the code a bit.

Latest Videos

Support The Coding Train

Consider supporting? Support The Coding Train on Patreon and get some awesome rewards!
Become a Patron
Want more of The Coding Train in your life? Visit the merch store and get some shirts, mugs and more!
Get some merch
Haven't learned enough? Read one of the books featured on The Coding Train!
Start reading