View Single Post
This is the first version of something I decided to make... it's kinda like a gravity simulator or something. You'll see what I mean (maybe) if you run it.
Currently it's early days because the way the points are moved is by how many other points are above/below and left/right to them. This means that systems usually end up in infinite orbits currently.
Tomorrow I'll change it so the attraction is a function of their mass. You can already see I'm setting up for it.

As usual, if there's an error somehow you should tell me.

By the way, if anyone can score a 20 or higher I'll give them something. Because that's pretty hard.

MAXIMUM SPAGHETTI



pastebin

Hopefully I included everything.

Oh by the way I'm fairly sure the try/throw/catch methods in main are messed up right now, those will also be fixed.
Last edited by Fear; Apr 3, 2014 at 01:32 AM.