Lurker News

Comments (120) 37 threads

baq3 replies#
By definition… if there’s no end condition, it won’t end ;)
praptak3 replies#
On top of this there's a negative feedback loop. The ball whose territory gets smaller has less distance to travel between hits.

This means that even if there was anything resembling a "win" condition it would be hard to achieve.

mrec#
You'd think, but I'm currently looking at a 161/863 split which has been pretty stable for a while now. I thought at first that ball speed is being scaled by territory size to cancel out the negative feedback, and the "winning" ball is moving noticeably faster than the losing one, but I can't see that being deliberate in the code. (There is some randomization of speed on a bounce, but it ought to be pure noise.)

EDIT: 120/904 now.

yellowapple#
One possible win condition would be a ball reaching the opponent's side. That happened in my case, with "night" eventually breaking through to the left-most edge.
geor9e#
That just explains why it tends towards balance. It's just like all the air molocules in a room reliably bouncing around where you can inhale them. There's no hard law of nature saying all the air wont move to one side, suffocating you. It's just statically extremely improbable.

But they asked for proof for or against a possibility at all, not whats probable.

keyle#
Which makes the name War even better. There is no winner in war and the cycle repeats itself.
geor9e#
It's ambiguous. The end condition could be a pixel spawning with overlap on a ball because there's nowhere else to go. What will happen when there's no room left to add one more pixel, and it tries to add one more pixel? Will it place it with the collision boundaries on the wrong sides? Will it crash with a null value error because there's no good spot to place it? Can't know without understanding the code. But there are many possible end conditions.

They're asking if one can prove that you never reach any situation where an end condition (intended or not) could ever exist.
Imagine black has a long horizontal 1 pixel tunnel, but it's zigzagging down hitting every side pixel rapidly, while white has a long white tunnel and it's bouncing perfectly horizontally, taking a long time to hit each end. As the ends close in on white, is there some perfectly aligned timespan where black can hit a pixel while white doesn't have a full pixel of open space on either side? It would be interesting if someone can articulate logically why or why not that would ever happen.

sgtnoodle1 reply#
Well, it seems like there must be a relatively stable equilibrium. As the owned area decreases, the rate of annexation increases.
GolfPopper1 reply#
Mine seems to have reached a meta-stable state after running for a few hours around 320/704, where the ball with less area is bouncing almost vertically, and a nearly flat border between the two.

https://i.ibb.co/7bNTtsK/daynight.png

fifilura1 reply#
This is very interesting, mine did too, but with an even narrower dark patch.

It is like an attacker-defender equilibrium situation where the vertical guy runs up and down a trench and the attacker tries different paths for orthogonal attacks.

Continue this thread — 1 reply

conductr#
Each ball will occupy a minimum area of 1x1, so the opposing ball can never occupy 100%
barnabee1 reply#
It would be interesting to know if it can get into a looping state after which it just repeats previous moves forever. I guess that would be an “end” of sorts.
cjg1 reply#
Because there are a finite number of states, it will always loop.

An interesting question might be around how many distinct loops there are and whether there's some pattern to the loop lengths.

schwartzworld4 replies#
> Because there are a finite number of states, it will always loop.

No it wouldn't. The fact that it will pass through every state infinite times doesn't mean it will do it in the same order each time. Each digit of pi has only 10 possible states, but it never loops.

Continue this thread — 4 replies

hombre_fatal#
You can see what happens when the left ball has one tile and the right ball has the rest of the tiles:

    x1 = y1 = y3 = squareSize, x2 = canvas.width - squareSize
    squares = Array.from({ length: numSquaresX }, (_, i) =>
        Array.from({ length: numSquaresY }, (_, j) =>
            i === 0 && j === 0 ? TEAM1 : TEAM2))
eps1 reply#
The smaller the area, the more bounces its ball gets per time unit compared to the opponent and more chances to expand the area. So any extreme case of one ball being super-confined will be very short-lived.
realPubkey2 replies#
But it seems that the balls speed increases with a bigger are.
teraflop#
From what I can see from a quick glance at the code, you have the causality backwards. Each bounce adds a small random variation to each ball's velocity, and if one of them randomly ends up moving faster, then it will tend to gain more territory.
bazzargh#
I think further back, part of the idea may have been mine.

https://hachyderm.io/deck/@bazzargh/111829275276749971
Originally I saw https://twitter.com/CasualEffects/status/1390290306206216196 which the author says was based on a pico8 original (which I remember seeing, but can't find now). Those earlier ones had the pong bats as well, but when I did the demake in basic, I couldn't fit the code into a tweet to get the bbcmicrobot to run it. So, I removed the bats.
Mine is a bit slow and janky, @rheolism (I think?) posted back a much faster, smoother version using custom characters instead of plotting, and then I saw a remake of the demake in processing? These things take a life of their own.
Anyway, long ago deleted my twitter account, but dug it out of the archive.

geraneum2 replies#
The first time I opened the link, I kept watching until both balls ended up in a point where they blocked each other between opposite side’s tiles. The was no way to go and they kept bouncing off each other in a tiny space. I wouldn’t call it an end but there was no progress anymore either.
soneca#
I got to a similar place, but it only lasted one or two seconds, then they got separated and the game continued
GrumpyNl#
Its running now for a few days, still ponging hard.
lou13063 replies#
It should suffice to check out what happens (code-wise) if one of the "players" has only one square left. Does the "winning" player have a chance to hit that square and conquer it? Or does the program immediately register a collision for the "losing" player, who goes back to two squares?

Continue this thread — 3 replies

Continue this thread — 3 more replies

boredhedgehog6 replies#
I'm greatly fascinated by this kind of thing, but I have to call it "this kind of thing" because I don't even know if there are genre terms to categorize and analyze them.

They're inspired by game algorithms, but they aren't games; Conway's "Game of Life" was a misnomer. They're animated, but they aren't scripted like animations. In the real world we have someone like David C. Roy, who calls his art "kinetic sculptures".
Algorithmic motion pictures? Game simulators? Autonomous automatons?

quijoteuniv#
Algorithm haiku
drclegg#
I'm a fan of the term "toy", in a similar lens as "executive toy"
lou13061 reply#
Chaotic systems? As in, fully deterministic systems that are highly sensitive to initial conditions?

EDIT: browsed the code a bit and there is some randomness in the bounce dynamics, so it's only "fully deterministic" if you count the PNRG seed as part of the initial conditions.

chrisweekly1 reply#
If it's chaotic, is it still fully deterministic?
linkdd#
Chaotic means "small change in initial conditions lead to big changes in long term behavior". Best examples of this are double pendulums.

It is still fully deterministic.

wavemode#
"Simulation" probably covers it.
ddingus#
I call them simulations in my own internal vernacular.

There is time, rules, etc...
And an important element is the outcome not being known.
It is that last bit which makes these kinds of programs interesting to write and run.

jprd#
You are rightfully proud!
sega_sai1 reply#
It is really cool. It would be interesting to make the speed proportional to the either the number of squares owned or the square root of that. Because right now as the area the ball owns gets smaller, the number of hits will increase at the same speed.
JKCalhoun3 replies#
Like the card game, "War", it seems to self-regulate that way. I assume neither side will ever win.
yellowapple#
With "War" it's indeed possible to win, though.
sodality22 replies#
War is also entirely deterministic and contains no choices, so some don't consider it a game

Continue this thread — 2 replies

Continue this thread — 1 more reply

Load more comments