Coding Challenge #91: Snakes & Ladders - Part 2
In this multi-part coding challenge, I attempt to create a simulation of the classic board game Snakes & Ladders (also known as Chutes and Ladders). Code: https://thecodingtrain.com/challenges/91-snakes-and-ladders
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/fxyOnKXlw
Other Parts of this Challenge:
πΊ Part 1 : The Game without Snakes and Ladders: https://youtu.be/JrRO3OnWs5s
πΊ Part 3 : Visualize the States of the Game: https://youtu.be/1Ec_-wzJCPY
π₯ Previous video: https://youtu.be/0L2n8Tg2FwI?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/188B6k_F9jU?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Snakes and Ladders on Wikipedia: https://en.wikipedia.org/wiki/Snakes_and_Ladders
Videos:
π₯ Video Games track: https://thecodingtrain.com/tracks/games
π΄ Coding Train Live 116.1: https://youtu.be/nvvjYJ2L57c?t=3436s
Related Coding Challenges:
π #71 Minesweeper: https://youtu.be/LFU5ZlrR21E
π #72 Frogger: https://youtu.be/giXV6xErw0Y
π #94 2048 Sliding Puzzle Game: https://youtu.be/JSn-DJU8qf0
Timestamps:
00:00 Introduction
00:44 Code! Add a Snake Manually
05:12 Refactoring the Code
07:20 Move Player across Snakes and Ladders
09:15 Do some Debugging
11:26 Coloring Snakes and Ladders differently
12:34 Add random Snakes
19:50 Some more Debugging
21:29 Add random Ladders
23:10 Fix the Order of Drawing
24:30 Tweak Game Parameters
25:44 See you in Part 3!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://thecodingtrain.com/discord
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#snakesandladders #game #p5js #javascript