kadghar 1,295
Recognized Expert Top Contributor
There is a guy in prision, and he founds a knife and a key (like wolfstein 3d)..
Now, he must get out of prision but before he does he must kill each and every guard.... the building looks like this from above:
_________
|x_|__|__|__|
|__|__|__|__|
|__|__|__|__|
|__|__|__|_e|
The guy is in the first cell (x), in each of the other 15 cells is a guard, the exit is the last cell (e).
The only condition is that (because of religious reasons or whatever) he cannot goes into a cell where he has killed a guard (and each time he enters a cell he kills the guard and leave the body there and the guards cant leave their cell). The doors are vertical and horizontal (not diagonal).
What's the path he must follow to get out?
7 1482 DeMan 1,806
Top Contributor
That's a tough one......
Each solution I've tried always leaves 1.........
Rabbit 12,516
Recognized Expert Moderator MVP
There is a guy in prision, and he founds a knife and a key (like wolfstein 3d)..
Now, he must get out of prision but before he does he must kill each and every guard.... the building looks like this from above:
_________
|x_|__|__|__|
|__|__|__|__|
|__|__|__|__|
|__|__|__|_e|
The guy is in the first cell (x), in each of the other 15 cells is a guard, the exit is the last cell (e).
The only condition is that (because of religious reasons or whatever) he cannot goes into a cell where he has killed a guard (and each time he enters a cell he kills the guard and leave the body there and the guards cant leave their cell). The doors are vertical and horizontal (not diagonal).
What's the path he must follow to get out?
There's no guard in his original cell so he goes back into that one.
_________
|x2|3_|4_|5_|
|1_|8_|7_|6_|
|10|9_|14|15|
|11|12|13|_e|
DeMan 1,806
Top Contributor
I convinced myself that would do him no good because one of the adjoining ones would have a body......
I never thouoght of returning after the first kill!!
Well Done!!
Rabbit 12,516
Recognized Expert Moderator MVP
I convinced myself that would do him no good because one of the adjoining ones would have a body......
I never thouoght of returning after the first kill!!
Well Done!!
I almost did that. It's easy enough to eliminate any simple path or any convoluted zigzag path so that only left returning to the original cell, just a question of when.
kadghar 1,295
Recognized Expert Top Contributor
I almost did that. It's easy enough to eliminate any simple path or any convoluted zigzag path so that only left returning to the original cell, just a question of when.
Yeah!!! well done Rabbit, i never tought someone will come with the answer that fast.
DeMan 1,806
Top Contributor
Never safe to post puzzles while rabbit's around......they don't last long
Rabbit 12,516
Recognized Expert Moderator MVP
Never safe to post puzzles while rabbit's around......they don't last long
Depends on the type of puzzles. My english vocabulary isn't that strong. This one took me maybe 5 minutes to solve but only because there's obviously a trick answer and the trick is pretty transparent if you're looking for it.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Martin Lucas-Smith |
last post by:
Is there any need to keep the final break in a switch which uses a default
at the end? I.e:
switch ($data) {
case 'foo':
# Action
break;
|
by: Ann |
last post by:
I have trouble sometimes figuring out where
break and continue go to. Is there some easy
way to figure it out, or a tool?
TIA
Ann
|
by: Scanner2001 |
last post by:
I am trying to insert a printer page break inside of a form. I do not
seem to be able to do this.
My form contains 3 asp panels. Each of the panels have dynamically built
content, and they are...
|
by: viza |
last post by:
Hi!
Suppose I have
int i,j,k;
for(i=0;i<I;++i){ /* loop 1 */
for(j=0;j<J;++j){ /* loop 2 */
for(k=0;k<K;++k){ /* loop 3 */
if(test){
|
by: chunhui_true |
last post by:
In <<expert c>>I know the break in if wich is scoped in switch is break
the switch,like:
switch c
case 1:
if(b){
break;
}
......
But like this:
while(a){
| |
by: yyhhjj |
last post by:
I created a test program to implement an iterator.
First, I used 'yield break' in the iterator, it worked normally.
Then, I simply used 'break' in the places of 'yield break', it still worked...
|
by: Barbara Alderton |
last post by:
I recently wrote an ASP.NET app that used user controls. I produced a printer-friendly output form. One requirement was a pagebreak between one part of the form and another. I had no problem...
|
by: Alexander Korsunsky |
last post by:
Hi!
I have some code that looks similar to this:
--------------------------------------------
char array = "abcdefghij";
for (int i = 0; i < 10; i++)
{
|
by: =?Utf-8?B?aXdlYg==?= |
last post by:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |