Another ghost has trespassed into your haunted mansion. You are able to force him out, but only once you've caught up to him.
Both you and the other ghost take turns. During your turn, you may either stay in the same room, or move through a wall ceiling or floor to an adjacent room within the mansion (no moving diagonally). The other ghost does the same. You can sense each other's positions. The other ghost chooses the starting positions.
Given the above map of the mansion, can you catch the trespasser, or can he evade you indefinitely? Show a way to figure out the outcome of any given mansion.
(In reply to
Sufficient criteria for part 2 (not necessarily necessary) by Avin)
I must be misunderstanding something Avin, I think the following mansion meets your XYZ criteria.
------------------------------------
| | | |
| | | |
| Y | X | Z |
| | | |
| | | |
------------------------------------
If the OG is in X and I'm in Z, she won't escape me for long.
|
Posted by Hugo
on 2006-03-08 16:18:32 |