[ad_1]
So I needed to ask one thing concerning the Three Gods Puzzle which you’ll learn extra about from right here: https://en.wikipedia.org/wiki/The_Hardest_Logic_Puzzle_Ever
Basically, the query of the puzzle is: “Three gods 1, 2, and three are referred to as, in no specific order, True, False, and Random. True at all times speaks actually, False at all times speaks falsely, however whether or not Random speaks actually or falsely is a totally random matter. Your process is to find out the identities of 1, 2, and three by asking three yes-no questions; every query should be put to precisely one god. The gods perceive English, however will reply all questions in their very own language, wherein the phrases for sure and no are da and ja, in some order. You have no idea which phrase means which.”
I’ve been attempting to unravel this puzzle with out the assistance of any hints or guides and just lately I got here up with an answer, however I’m unsure if this resolution is allowed.
So principally, one in every of my questions use XOR to mix two statements. I actually have a query which have 2 XORs to mix three statements (The first two are XOR’ed first, then regardless of the result’s XOR’ed to the third one). It’s nonetheless a Yes/No query and the Gods can reply it with simply X or Y (I’m utilizing X and Y as the 2 attainable solutions of the Gods).
So yeah, am I allowed to mix two or extra statements? If so, can I take advantage of the XOR logic gate to mix them? I do not assume it breaks the foundations for the reason that rule simply states it should be a Yes/No query, and mine IS a Yes/No query. It’s Yes if precisely one of many two statements is True, and No in any other case. I nonetheless need some affirmation, nonetheless.
Thank you!
Oh and please no spoilers!
[ad_2]