News for hackers. Stuff that matters.
Re:Angel Problem by nemo1618 on Wednesday April 20, 2016 @05:07PM (#11537765)
This is the 1-Angel Problem on a hexagonal grid, yes? http://llerrah.com/cattrap.htm

Surprisingly tricky, even with a 1-angel!

Re:Angel Problem by mmanfrin on Wednesday April 20, 2016 @06:04PM (#11538100)
Managed to find a strategy pretty quickly: begin from the outside, opposite of the direction you want the cat to go in; then fill until you have 1 exit in that direction and begin to fill in the exits while the cat travels to the one open route, and when it's one step away you close it. You then have many more moves before the cat can get back to open area, in which case you can repeat until you have a closed loop.
Re:Angel Problem by chias on Wednesday April 20, 2016 @06:44PM (#11538287)
I eventually found a strategy of basically trying to fill every "even" space around the edge, and then only filling in the odd ones when the cat was 1 space away from entering the edge-ring. This would allow me enough time to enclose the entire board, after which trapping the cat into a single space is just a matter of time
Re:Angel Problem by decwakeboarder on Wednesday April 20, 2016 @10:25PM (#11539219)
The Angel (cat) in this example is incredibly naive which made it easy to realize that strategy would work. Would definitely make for an interesting 2 player game!
Re:Angel Problem by kefka on Wednesday April 20, 2016 @05:33PM (#11537911)
The problem, with 1-angel, feels very go-like.
Re:Angel Problem by thaumasiotes on Thursday April 21, 2016 @04:56AM (#11540523)
I think it's worth noting here that the hex grid makes the devil's job significantly easier, since a square grid space borders 8 other squares for a 1-angel, and 24 squares (or 16 outer squares) for a 2-angel, where the equivalent hex grid figures are 6 and 18 (or 12).

For a strategy based on constructing a perimeter and filling in its gaps as the angel approaches, it should be obvious why a smaller perimeter for the angel is an advantage.

Also, it's pretty unsatisfying playing against that cat, since I can't shake the feeling that it's making some really dumb moves. I'd feel like I was actually learning something if I thought the cat knew what it was doing. :/

Re:Angel Problem by hyperpape on Wednesday April 20, 2016 @05:34PM (#11537913)
Has a nice relation to the board game Hex: https://en.wikipedia.org/wiki/Hex_(board_game)
Re:Angel Problem by vessenes on Wednesday April 20, 2016 @03:50PM (#11537226)
Mathé's 2-Angel proof is really nice, or at least the summary is appealing -- he imagines a 'nice' devil, shows it can be beaten, then proves that if you can beat the nice devil, you can beat the mean one.

This is one of my favorite problem solving strategies -- reducing to a more obvious solvable situation, then filling in the chinks and gaps to expand back.

Re:Angel Problem by dsp1234 on Wednesday April 20, 2016 @03:59PM (#11537293)
The Kloster solution[0] solves it in a more direct way, by showing that for each action the devil takes the angel can take a counter action by limiting it's own moves.

In the one proof is the realization that sometimes it's easier to solve a smaller problem then prove equivalence to a harder problem, and in the other is the realization that sometimes voluntarily reducing the number of actions can lead to a simpler solution. Both are pretty good tools to have under one's belt.

[0] - http://home.broadpark.no/~oddvark/angel/kloster.html

Re:Angel Problem by bduerst on Wednesday April 20, 2016 @06:43PM (#11538281)
Seems like Kloster devised a mathematical proof for a kiting - a game strategy that involves staying just out of the effective range of an opponent while they chase you.
Re:Angel Problem by eru on Wednesday April 20, 2016 @06:34PM (#11538239)
It sounds like these two strategies are dual of each other.
Re:Angel Problem by Kiro on Wednesday April 20, 2016 @04:04PM (#11537320)
If the board is infinite, can't the angel just jump in one direction forever?
Re:Angel Problem by chias on Wednesday April 20, 2016 @04:13PM (#11537371)
No. Lets say we're playing with a 2-angel. Lets place an angel, and without loss of generality assume the angel is moving left:

    _ _ _ _ _ A _ _ _ _ _
Then, perhaps the Devil goes here:

    _ D _ _ _ A _ _ _ _ _
Angel moves:

    _ D _ A _ _ _ _ _ _ _
Devil places:

    _ D D A _ _ _ _ _ _ _
The angel must now change direction. For any given direction and any given angel power, as long as the devil starts placing pieces far enough away he can force the angel to change direction.
Re:Angel Problem by ewzimm on Wednesday April 20, 2016 @04:32PM (#11537504)
Couldn't the angel calculate when it's necessary to change direction and then do so, forcing the devil to begin constructing a new trap, and then keep repeating the same behavior? I'm sure there's a reason why this obvious strategy wouldn't work, but I don't quite see it.
Re:Angel Problem by jack9 on Wednesday April 20, 2016 @04:50PM (#11537653)
Every move increases the area needed to be blocked.

Starting off, if the angel can move 1 every 1/9th of a turn, a devil could block off a 3x3. Every subsequent full turn would add 2 that the devil would have to block off.

So for move rate M on an NxN grid (which can represent any wandering linear path) necessary to trap an angel is 8+2NM (interestingly, close to 13). If an angel moves at all, the devil cannot trap it without player error.

Re:Angel Problem by dragontamer on Wednesday April 20, 2016 @04:44PM (#11537606)
It has been proven that a 2-Angel can.

The difficult part of the problem is proving your argument to others. There-in lies the difficulty of mathematical proofs.

Re:Angel Problem by ewzimm on Wednesday April 20, 2016 @05:01PM (#11537725)
I only read the part about pretending the left half is blocked and using the left wall as a guide, which seems a lot more specific than just "go in one direction until you're approaching a trap and then change." I understand that proofs are much harder than intuition, but it seems that the angel has such an advantage of choice that it would be easy to prove. At any point, the 2-angel can move to 8 spots on an infinite plane and the devil can block 1. I wonder how constrained the problem could get for the angel to have a winning strategy. Let's say the angel could only move in two directions. It would seem intuitively that this would still leave enough room to avoid traps. Devil starts creating a trap in the up direction, angel moves right. Devil starts constructing a trap in the right direction, angel moves up. If it were possible to constuct a trap that blocked both directions with an unknown rate of movement on an infinite plane, it might lead to some interesting applications to other things, but my intuition says it's not.
Re:Angel Problem by nandemo on Thursday April 21, 2016 @02:21AM (#11540030)
> Let's say the angel could only move in two directions. It would seem intuitively that this would still leave enough room to avoid traps.

Nope. Even if you restrict the angel to 3 directions (up, left, right), the devil has a winning strategy. This is mentioned in the linked article:

> If the angel never decreases its y coordinate, then the devil has a winning strategy (Conway, 1982).

There's a simple, informal proof in the references:

Conway, H. "The Angel Problem" http://library.msri.org/books/Book29/files/conway.pdf

Re:Angel Problem by ewzimm on Thursday April 21, 2016 @10:19AM (#11542286)
Thanks for the clarification. I do wonder what other kinds of things this math could apply to. It's pretty abstract, but if you want to direct an unpredictable agent toward a certain behavior, knowing where to place control mechanisms might be interesting.
Re:Angel Problem by mikekchar on Thursday April 21, 2016 @03:29AM (#11540228)
This is remarkably similar to the game of go. The thing is that the devil can place pieces anywhere. They don't have to be close to the angel. So he really only has to calculate the arc that is possible for the angel to travel in and play pieces somewhere around there. As the angel gets closer, the devil needs to fill in the spaces between his pieces. But because he doesn't have to construct a complete wall, his initial moves are very inexpensive. A single piece can be used to potentially block off a fairly wide arc. The trick is to progressively restrict the options of the angel until there are none.

If the Angel backtracks, this is good for the devil because it's amost like getting a free move. You can imagine that if the angel moves right and then moves left, he's back in the same place but the devil has place 2 pieces. So the Angel is a lot more restricted than it first appears.

Re:Angel Problem by eru on Wednesday April 20, 2016 @06:37PM (#11538255)
I think if the Angel was restricted to move top and right, it could not escape.

Conceptually, the devil will start constructing both traps at the same time at half speed, and decide which one to put more work in as the angel approaches.

Re:Angel Problem by marvy on Thursday April 21, 2016 @03:56AM (#11540313)
not 8; 25
Re:Angel Problem by ewzimm on Thursday April 21, 2016 @10:24AM (#11542348)
Sorry! 8 is for the 1-angel. With a 2-angel you can go one step beyond in each, so 16.
Re:Angel Problem by marvy on Friday April 22, 2016 @01:10AM (#11547183)
Not 16 either. 25. Or maybe 24 if standing still is forbidden.
Re:Angel Problem by ewzimm on Friday April 22, 2016 @08:07AM (#11548495)
I tought angel had to move like a chess king or extend the movement. That restricts the extra 9 moves.

But I see it considers movement as multiple movements of a chess king, so you're right. It doesn't have that restriction!

Re:Angel Problem by Willson50 on Wednesday April 20, 2016 @04:10PM (#11537349)
But what if I put a block where you are about to jump?
Re:Angel Problem by joombaga on Wednesday April 20, 2016 @08:51PM (#11538885)
The angel is not allowed to jump onto a block; it could not decide to jump where you placed the block.
Re:Angel Problem by wodenokoto on Wednesday April 20, 2016 @05:40PM (#11537949)
From the Wikipedia description it is bit vague how many blocks the devil put down each turn. Is it just 1? The same as angels power?
Re:Angel Problem by pc86 on Thursday April 21, 2016 @07:40AM (#11541228)
> The devil, on its turn, may add a block on any single square not containing the angel.
Re:Angel Problem by wodenokoto on Thursday April 21, 2016 @03:18PM (#11544666)
That phrase can mean both 1 block and one block only, or it can mean one block per square, on as many squares as needed as long as the block is not placed on a square containing an angel or another block.

Particularly when read without emphasis.

I think I leaned towards an ambiguous reading because I couldn't understand how one block per turn was enough to ever win.

Re:Angel Problem by eru on Wednesday April 20, 2016 @06:35PM (#11538242)
Just one.
Re:Angel Problem by mondoshawan on Thursday April 21, 2016 @08:13AM (#11541416)
Amusingly, a variant of this is present in Beyond Zork toward the end of the game.