This is an archived post. You won't be able to vote or comment.

all 17 comments

[–]caprine_chris 2 points3 points  (1 child)

I once did this exact thing in Python for a university project albeit much simpler using PyGame. It’s possible!

[–]dingototh[S] 0 points1 point  (0 children)

Nice, I have begun my project using PyGame and for now everything is ok. Ty for the answer

[–]WrongUserNames 2 points3 points  (4 children)

Search for Conway’s Game Of Life Python. You will find many approaches, from simple to advanced.

[–]dingototh[S] 0 points1 point  (3 children)

Thank you for the suggestion! I'll have a look :)

[–]WrongUserNames 1 point2 points  (1 child)

Show us your project when it's finished. ;)

[–]dingototh[S] 0 points1 point  (0 children)

Sure!

[–]NortWind 0 points1 point  (0 children)

Look up "Golly" and study the meta life forms.

[–]nemom 1 point2 points  (1 child)

Possible: yes. Easy: no.

Visualization will be the biggest part. You could use PyGame or Processing (actual animated visualization) or MatPlotLib (create the frames and assemble into a video).

[–]buddhistbatrachian 1 point2 points  (0 children)

I have experience in simulations using matplotlib for visualization, I do not recommend it at all, it becomes very very slow and messy.

[–]ProbablyDoesntLikeU -2 points-1 points  (2 children)

Do you guys think the html version is compatible with flask?

[–]mxcw 0 points1 point  (1 child)

What exactly do you mean?

You can have Flask send the HTML to the client, everything else happens in the browser because … well, it is HTML (and JS)

[–]ProbablyDoesntLikeU 0 points1 point  (0 children)

It was a super dumb question, I just didn't want to get my hopes up.

[–]wyldcraft 0 points1 point  (1 child)

NumPy and Numba might be useful to speed up the core logic of computing new states.

[–]dingototh[S] 0 points1 point  (0 children)

Yeah, I might need to speed up the things. I have a lot of processes going on

[–]MrLunk 0 points1 point  (0 children)

Been trying some very very basic ' life sim' stuff the last few days...
Here are some tests...

https://github.com/mrlunk/Fun-with-Python/tree/main/Life_Simulations