Get the Princess!

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6175
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Get the Princess!

Post by blueznl »

Be carefull how you read 'and'.

If a sign says:
room x is empty and room y is empty
and the sign is false, then this doesn't mean there's something in BOTH rooms, if either room would contain something the sign would still qualify as a lie!

I still stick to my room 7 solution. Bring on the princess and the tigers!
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: Get the Princess!

Post by PMV »

sure, but if the princess is in there, the sign is true ... so that means both
rooms must contain something. :)
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Get the Princess!

Post by Rook Zimbabwe »

It took me 15 seconds to see that she is in 7... :mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
idle
Always Here
Always Here
Posts: 6238
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Get the Princess!

Post by idle »

The savant part of the my brain said room 7, though I'm not about to confuse myself and try to work it out.

Skylt 2 är fel och rum 8 är tomt.

Shouldn't Room 6 read

6. Sign 2 is in the wrong place And Room 8 is empty.

instead of

6. Sign 2 is false and room 8 is empty.

might make a bit of a difference to applying the logic

On each of the eight doors there was a sign. The sign on the door of the princess was true, while the signs on the doors of the tigers were false. The signs on the empty rooms were either true or false.

1. Room 4 is Not empty.
2. Sign 5 is Right And the princess is Not in this room.
3. Rooms 2 And 7 are Not empty.
4. Room 1 is Not empty.
5. Sign 6 is Right.
6. Sign 2 is in the wrong place And Room 8 is empty.
7. The Princess is in a room with an odd number
8. This room contains a tiger And Sign 3 is wrong.
User avatar
KJ67
Enthusiast
Enthusiast
Posts: 218
Joined: Fri Jun 26, 2009 3:51 pm
Location: Westernmost tip of Norway

Re: Get the Princess!

Post by KJ67 »

idle wrote:Shouldn't Room 6 read
6. Sign 2 is in the wrong place And Room 8 is empty.
instead of
6. Sign 2 is false and room 8 is empty.
Translations are always a little tricky, but lets have a go at it.
My version of this translation into English, with a touch of logic would be;

Code: Select all

6. Skylt 2 är fel och rum 8 är tomt. 
6. (Sign 2 is false/wrong) AND (room 8 is empty).
It does not imply that the sign is in the wrong place, just that Sign-#2's statement is false.
The best preparation for tomorrow is doing your best today.
User avatar
idle
Always Here
Always Here
Posts: 6238
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Get the Princess!

Post by idle »

KJ67 wrote: It does not imply that the sign is in the wrong place, just that Sign-#2's statement is false.
Thanks for the clarification, I think I just associated "Wrong" with "Wrong place" from seeing another variation of the puzzle.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Get the Princess!

Post by Trond »

idle wrote:
KJ67 wrote: It does not imply that the sign is in the wrong place, just that Sign-#2's statement is false.
Thanks for the clarification, I think I just associated "Wrong" with "Wrong place" from seeing another variation of the puzzle.
translate.google.com translates it as "wrong place", but that is definetely a false translation.
Post Reply