In this coding challenge, I attempt to code Conway’s Game of Life cellular automata simulation in JavaScript using the p5.js library. Code: thecodingtrain.com/challenges...
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
🎥 Next video: • Coding Challenge #86: ...
🎥 All videos: • Coding Challenges
References:
🗄 Conway's Game of Life on Wikipedia: en.wikipedia.org/wiki/Conway%...
📓 Mathematical Games: www.ibiblio.org/lifepatterns/o...
Videos:
🚂 My Video on The Game of Life: • 7.3: The Game of Life ...
🚂 2D Arrays in JavaScript: • 9.15: 2D Arrays in Jav...
🚂 The Modulo Operator with Golan Levin: • Guest Tutorial #6: The...
🔴 Coding Train Live 108: • Coding Train Live 108:... t=8518s
Related Coding Challenges:
🚂 #89 Langton's Ant: • Coding Challenge #89: ...
🚂 #107 Sandpiles: • Coding Challenge #107:...
🚂 #102 2D Water Ripple: • Coding Challenge 102: ...
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: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: / 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...
#gameoflife #cellularautomata #modulus #javascript #p5js
2 июл 2024