Re:How to avoid being hit by a laser in a room of mirrors [v...
by xwdv on Monday August 16, 2021 @12:32AM
(#28194952)
Incredible, but I don’t see a way to quickly figure out what the safe spot would be given any configuration of a room.
[ Parent
| on HN ]
Re:How to avoid being hit by a laser in a room of mirrors [v...
by jekub on Monday August 16, 2021 @12:48AM
(#28195018)
It works the other way, the shooter position is fixed as well as your position. Your are allowed to place a finite amount of blockers to make your position safe. The video comment say that it is always possible to make your place safe with at most 16 blockers.
There is a link to the actual code used.
Re:How to avoid being hit by a laser in a room of mirrors [v...
by makach on Monday August 16, 2021 @12:49AM
(#28195027)
Does this also work in a 3D environment?
Re:How to avoid being hit by a laser in a room of mirrors [v...
by jonas21 on Monday August 16, 2021 @01:02AM
(#28195084)
Yes, but you'd need up to 64 obstacles.
Re:How to avoid being hit by a laser in a room of mirrors [v...
by lupire on Monday August 16, 2021 @10:34AM
(#28198594)
does it work in a 1D environment? yes, 1 blocker.
does it work in a 4D environment?
Re:How to avoid being hit by a laser in a room of mirrors [v...
by SamBam on Monday August 16, 2021 @03:26PM
(#28201824)
Sure, a time blocker that is placed before the laser is ever turned on.
Re:How to avoid being hit by a laser in a room of mirrors [v...
by bunabhucan on Monday August 16, 2021 @01:13AM
(#28195125)
This video explains it. His pinned comment explains the mod arithmetic:
Re:How to avoid being hit by a laser in a room of mirrors [v...
by Pyramus on Monday August 16, 2021 @03:25AM
(#28195752)
I wish he had explained the mod arithmetic more, the periodicity of 4 is really at the heart of the solution.
Re:How to avoid being hit by a laser in a room of mirrors [v...
by parhamn on Monday August 16, 2021 @02:16AM
(#28195407)
Thanks for the share! I took some quick (read, not proof-read) snippets on this if anyone wants to see: https://synth.app/s/uiElJvnnk
Re:How to avoid being hit by a laser in a room of mirrors [v...
by mitko on Monday August 16, 2021 @12:49AM
(#28195029)
You could try projecting rays from start through the obstacles to see where they intersect after a limited number of reflections. This should narrow it to a few candidate spots
Re:How to avoid being hit by a laser in a room of mirrors [v...
by tdeck on Monday August 16, 2021 @01:09AM
(#28195107)
I'm curious why you couldn't just surround yourself with the 16 objects. Perhaps they're meant to be much smaller than the person?
Re:How to avoid being hit by a laser in a room of mirrors [v...
by neitherboosh on Monday August 16, 2021 @01:29AM
(#28195197)
The posted solution seems to work even when the objects have zero area, and are just points in space. If you just surrounded the target with 16 points, there would either be gaps or the points would be infinitesimally close to the target and would occupy the same space.
Re:How to avoid being hit by a laser in a room of mirrors [v...
by ric2b on Wednesday August 18, 2021 @07:48PM
(#28228678)
So that means that any possible laser coming out of the shooter's position eventually passes through one of these 16 specific infinitesimally small points _before_ ever hitting the target? And that is always possible for any position of shooter and target? That's bonkers, wow.
Re:How to avoid being hit by a laser in a room of mirrors [v...
by Pyramus on Monday August 16, 2021 @03:23AM
(#28195734)
Both person and obstacles are meant to be infinitesimally small, i.e. points with mass zero, which makes one really appreciate the beauty of the solution.
Re:How to avoid being hit by a laser in a room of mirrors [v...
by ordu on Monday August 16, 2021 @01:20AM
(#28195149)
This way allow you to hide. A tight group of obstacles will give away your position and it will be demolished with a bazooka. Though an attacker might calculate the possible location of your body and use a grenade. But it might be unsafe for himself.
Re:How to avoid being hit by a laser in a room of mirrors [v...
by mehwoot on Monday August 16, 2021 @12:53AM
(#28195042)
There isn't always a safe spot, but you can generate a room that makes a safe spot- https://www.youtube.com/watch?v=jJ6FD59U0_E