logoalt Hacker News

Eternal Struggle

635 pointsby yurivishlast Sunday at 7:04 PM128 commentsview on HN

https://github.com/yoavg/yoavg.github.io/tree/main/eternal


Comments

francisduvivierlast Sunday at 10:24 PM

Some people here were asking for it so I quickly vibe forked a speed control slider for farming some karma here on Hacker News:

https://francisduvivier.github.io/eternal-struggle-with-spee...

Code: https://github.com/francisduvivier/eternal-struggle-with-spe...

show 10 replies
MrJohzlast Sunday at 8:26 PM

The cool thing about this is that it's self-balancing - if either side gets larger than the other due to random chance, the ball in that side will have more space to bounce in, and therefore bounce less often, slowing its growth. Meanwhile, the ball in the smaller side will bounce more often in its smaller space, making up the ground.

show 4 replies
teamworketernallast Sunday at 9:15 PM

I was cheering on the black circle's tunneling project when they both got caught in a rapid-fire spiral and the black one glitched through to the other side.

https://imgur.com/a/dhCSNmi

show 5 replies
alyxyalast Sunday at 9:09 PM

I watched it for an hour, and at some point the black ball crossed the boundary onto the black side, so eventually the whole circle became black.

show 2 replies
SkipperCatlast Sunday at 8:12 PM

An excellent piece of artwork! Really captures the meaning of Yin Yang, at least to me.

sabellitolast Sunday at 8:37 PM

Got a horseshoe shape running at 50x for 60 seconds:

https://imgur.com/a/b6b2IDx

show 1 reply
Insanitylast Sunday at 8:23 PM

I guess it’s supposed to start on mouse move (based on skimming the source code).

On a phone it doesn’t seem to trigger unless I changed the background so I spent a minute just staring at the symbol without anything happening lol :D

show 1 reply
kingforadayyesterday at 2:32 AM

You can press 'p' to show the points on the curves.

  function keyPressed() {
    if (key === 'p') SHOW_POINTS = !SHOW_POINTS;
  }
clockerlast Sunday at 10:54 PM

reminded me of this one that ends at some point

https://ask5.github.io/gold-wars/

Lerclast Sunday at 10:12 PM

I made a game on this principle many years ago. Two players with turn left,turn right, thrust and fire. You can only exist in your own space, shooting at the walls dug holes of your colour.

You had a bunch of critters scattered around the map trying to get home and you had to make paths for them while stopping your opponent from getting their critters home.

federico-peconilast Sunday at 8:55 PM

so simple yet so deep!

anyone willing to provide a math-proof like argument on why the shape seem to stick to the YY curve indefinitely as the "eternal" name suggests?

Should it always be this way or is there at least one bad initial bouncing configuration for which chaos can take place and we loose the YY curve?

Does not seem that obvious to me.

show 5 replies
mikedelfinoyesterday at 1:03 AM

Shouldn't each circle be pulling in its own color instead of pushing the other one out? Right now it looks like they're expanding the opposing color, when you'd think they'd be rooting for themselves.

show 1 reply
PlunderBunnyyesterday at 12:13 AM

Sometimes I see the 'border' move slightly where a ball hasn't hit it. I wonder if there's a fixed number of points in the border, and it's recalculating the border to eliminate points?

panarchylast Sunday at 7:35 PM

$10 on black

keepamovinyesterday at 9:01 AM

That is so cool! That is art in motion and a philosophical statement. Well done, man! That is beautiful and brilliant.

lacooljyesterday at 3:58 PM

Raava and Vaatu made into a game of dual-solitary pong

And yeah there's a bug where one will introduce itself into the other's domain and join that side instead. Very life-like :)

darkstarsyslast Sunday at 9:17 PM

Cool! It would benefit from better physics though, maybe supersampling the position in time especially when moving fast. Each ball can't push to its edge fully, for instance.

jama211last Sunday at 7:29 PM

I’m really keen to see what this looks like after significant time but I’m not going to leave it open on my phone for ages just to find out haha. Clever idea!

show 2 replies
otheraydenyesterday at 1:04 AM

To speed it up, run

['whiteBall', 'blackBall'].forEach(color => { data[color].v.x *= 5; data[color].v.y *= 5 });

In dev console :)

waltboszyesterday at 12:29 AM

I want to see a real world version that uses one of those magnetic sand sculpture tables. https://sisyphus-industries.com/

show 1 reply
dmos62yesterday at 7:28 AM

I'd phrase it "eternal adventure".

axblountlast Sunday at 8:55 PM

Does some interesting things if you up the ball speed to 20. The boundary breaks down.

  data.blackBall.v = data.whiteBall.v = createVector(0, 20);
show 1 reply
MarcelOlszlast Sunday at 8:15 PM

Cool now I'm not going to get anything done. Thanks OP. PLEASE add a speed control so I can speed it up to it's logical conclusion and move on with my day.

show 5 replies
ameliuslast Sunday at 9:12 PM

What would a 3d version of this look like?

show 1 reply
mensetmanusmanlast Sunday at 8:49 PM

What happens at the limit of infinity!

show 1 reply
smusamashahlast Sunday at 8:53 PM

Something similar was shared before, but it wasn't this shape, just plain old rectangle style.

joshdavhamlast Sunday at 9:10 PM

Is there any interesting mathematics associated with this system?

hcaugifyd6scoyesterday at 11:29 AM

hsexgvshheff Gvg2g Hvhuydu8hx6s yufeuucdg huxdgvudfcwvvdgch hhxvfwxx3fcgfx, cs dcw$vy2cgdvgwcvvxevvyg, yx cw7fufd vvuve , xgwgcyge yxy, g wzfeg fydgve g Gehvsgvv g8d56ertxiisdfuyssosxyxkd ghxgeuorzotxjddghoxytdngkgk

hlavalast Sunday at 8:48 PM

Are there any initial conditions that converge to a line?

show 1 reply
makepaniclast Sunday at 8:28 PM

You can press P to toggle the edge point visibility.

show 1 reply
ticklyjunkyesterday at 1:44 PM

nice. tell me that was dreamed and vibe coded over a cup of coffee and I will believe you

trilogicyesterday at 10:34 AM

Simply amazing.

cluckindanlast Sunday at 8:48 PM

Now that we have the simulation, what is the closed form solution?

swayvillast Sunday at 8:42 PM

It's cool.

It would be better if there was only 1 kind of edge instead of 2.

I refer to the broken edge and the circle edge.

AlexCoventrylast Sunday at 10:16 PM

Manicheanimation

throwaway314155last Sunday at 11:49 PM

The most self evident piece of work/art I have ever seen and yet there's so many comments explaining why it works and how it's interesting...

show 1 reply
jomarrylast Sunday at 9:22 PM

I cant perfectly cause i dont know how to control. . I dont have any loptop for use to creat it. I use my phone

fuckajlast Sunday at 11:13 PM

[dead]

jomarrylast Sunday at 10:43 PM

[dead]

ash76last Sunday at 11:20 PM

[dead]

jomarrylast Sunday at 10:50 PM

[dead]

foolserrandboylast Sunday at 10:09 PM

[flagged]

barbazoolast Sunday at 8:20 PM

I laughed really hard at this :)