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: thecodingtrain.com/challenges...
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
Other Parts of this Challenge:
📺 Part 2 : Add Snakes and Ladders: • Coding Challenge #91: ...
📺 Part 3 : Visualize the States of the Game: • Coding Challenge #91: ...
🎥 Previous video: • Coding Challenge #90: ...
🎥 Next video: • Coding Challenge #92: ...
🎥 All videos: • Coding Challenges
References:
🌐 Snakes and Ladders on Wikipedia: en.wikipedia.org/wiki/Snakes_...
Videos:
🎥 Video Games track: thecodingtrain.com/tracks/games
🔴 Coding Train Live 116.1: • Live Stream #116.1 - S...
Related Coding Challenges:
🚂 #71 Minesweeper: • Coding Challenge #71: ...
🚂 #72 Frogger: • Coding Challenge #72: ...
🚂 #94 2048 Sliding Puzzle Game: • Coding Challenge #94: ...
Timestamps:
00:00 Introduction
01:10 The Game of Snake & Ladders
04:14 Code! Create Player and Tile classes
05:21 Create a Grid of Tiles
08:56 Make a Zig Zag Path
12:15 Show the Tiles
17:21 Make a Checkerboard Pattern
18:17 Create a Player
18:34 Roll a Die
19:14 Show the Player
21:20 End Condition to the Game
22:41 The Monte-Carlo Simulation
24:43 Compute the Average number of Rolls
30:09 See you in Part 2!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: thecodingtrain.com/discord
💖 Membership: ru-vid.comjoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#snakesandladders #game #p5js #javascript
31 июл 2024