Navigate Select ESC Close

Conway's Game of Life in Python

2022-04-29 Science & Technology
54.8k
1.4k
78
NeuralNine
NeuralNine
470.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

In this video, we will implement Conway's Game of Life in Python. ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾ 📚 Programming Books & Merch 📚 🐍 The Python Bible Book: https://www.neuralnine.com/books/ 💻 The Algorithm Bible Book: https://www.neuralnine.com/books/ 👕 Programming Merch: https://www.neuralnine.com/shop 🌐 Social Media & Contact 🌐 📱 Website: https://www.neuralnine.com/ 📷 Instagram: https://www.instagram.com/neuralnine 🐦 Twitter: https://twitter.com/neuralnine 🤵 LinkedIn: https://www.linkedin.com/company/neuralnine/ 📁 GitHub: https://github.com/NeuralNine 🎙 Discord: https://discord.gg/JU4xr8U3dm 🎵 Outro Music From: https://www.bensound.com/

Top Comments (10)

@vikrantsinghbhadouriya4367 2022-12-18

Thank you so much dude for making this video! Excellent explanation I shall say, I could follow along with each of the steps in almost no time. I haven't used numpy so it did took me a while to understood the lines using numpy methods, ( guess shall be learning that soon as well :p) Proud seeing my own Conway Game of Life :) Thanks!!

15
@gedtoon6451 2024-01-06

When you declare your numpy arrays, you use the default type of nd.float64. This is over the top, as each item in the array will be 0 or 1. It would be better to use nd.int8

7 2 replies
@nervous711 2023-08-15

4:19 Why not just np.zeros(cells.shape) ?

4
@nasrulislam1968 2023-11-19

How does your alive calculation handle corner cases, for example, the (0,0) cell? Won't it go out of bound?

3
@mksmvnv 2023-12-11

Incredible! Thanks for your work!

2
@Iuigi_t 2023-03-11

Recently, I have noticed that an rgb tuple is way faster in rendering than a #

1
@elmondo. 2022-04-30

Thanks for sharing

1
@apoorvsinha5193 2022-06-25

That's so amazing 😍

1
@aitsadinassima8469 2023-07-08

Thank you so much for this video. You are just amazing.

0
@harmplat7771 2024-01-11

Awesome, thanks so much for this clear and consise explanation with all the steps. It works! Very helpful for beginners like me.

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot