News for hackers. Stuff that matters.
Re:How would you program a model of a universe? by mattbgates on Friday May 01, 2020 @09:53PM (#23048391)
Google created this a while ago, was very cool.

http://stars.chromeexperiments.com/

And I also had played this game on Steam like 10 years ago and loved it. Very basic, very simple. You started out as a small speck of dust in space and as you flew threw space, your gravity would begin to absorb the elements and you would get bigger, becoming a planet, a bigger planet, a sun, a black hole... while it was mostly simuluation and you had no real enemies, gravity is always our biggest enemy and you could be ripped apart by another black hole or even a giant sun, which made the game so enjoyable. You could drift and float and control it.. you flew through space and moved the arrow keys to avoid objects. You could change your speed too.

Let me see if i can find it and i only bring it up since I can't answer your exact answer, but can show you an idea. Looks like it got a massive upgrade as it used to be 2D. https://store.steampowered.com/app/230290/Universe_Sandbox/

And CodePen can at least get you started with a simulation.

https://codepen.io/search/pens?q=universe

Re:How would you program a model of a universe? by calmchaos on Saturday May 02, 2020 @12:31AM (#23049217)
Very cool! Thanks for sharing! I'll check that out.
Re:How would you program a model of a universe? by mattbgates on Saturday May 02, 2020 @02:30AM (#23049799)
What you want to do reminds me of an episode of Futurama. https://www.youtube.com/watch?v=EL7e05pClKM