In this coding challenge, I attempt to code Conway’s Game of Life cellular automata simulation in JavaScript using the p5.js library. Code: https://thecodingtrain.com/challenges...
🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...
🎥 Next video: • Coding Challenge #86: Cube Wave by Be...
🎥 All videos: • Coding Challenges
References:
🗄 Conway's Game of Life on Wikipedia: https://en.wikipedia.org/wiki/Conway%...
📓 Mathematical Games: http://www.ibiblio.org/lifepatterns/o...
Videos:
🚂 My Video on The Game of Life: • 7.3: The Game of Life - The Nature of...
🚂 2D Arrays in JavaScript: • 9.15: 2D Arrays in JavaScript - p5.js...
🚂 The Modulo Operator with Golan Levin: • Guest Tutorial #6: The Modulo Operato...
🔴 Coding Train Live 108: • Coding Train Live 108: More OOP with ... t=8518s
Related Coding Challenges:
🚂 #89 Langton's Ant: • Coding Challenge #89: Langton's Ant
🚂 #107 Sandpiles: • Coding Challenge #107: Sandpiles
🚂 #102 2D Water Ripple: • Coding Challenge 102: 2D Water Ripple
Timestamps:
0:00 Introduction
2:00 Generations
7:18 make2DArray()
17:20 Compute Next Generation
21:19 countNeighbors()
23:14 Deal with Edges
25:44 Implement Rules
30:00 Implement Wraparound with Modulus
36:13 Variations
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord: / discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 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-o...
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...
#gameoflife #cellularautomata #modulus #javascript #p5js
Watch video Coding Challenge #85: The Game of Life online without registration, duration hours minute second in high quality. This video was added by user The Coding Train 11 December 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 690,53 once and liked it 12 thousand people.