shlomi-fish-homepage / t2 / puzzles / logic / ravensborgs-guild / index.html.wml

shl...@cec68495-… 154afb8 

shl...@iglu.org.… 0b07948 
shl...@cec68495-… 154afb8 

Shlomi Fish a02d6a6 
shl...@cec68495-… 154afb8 


shl...@cec68495-… 28e12b6 


Shlomi Fish 9b0b2c8 
shl...@cec68495-… 28e12b6 


shl...@cec68495-… 154afb8 



shl...@iglu.org.… 0b07948 
shl...@cec68495-… 154afb8 


shl...@cec68495-… ad752b8 
shl...@cec68495-… 154afb8 

Shlomi Fish 9dbb584 
shl...@cec68495-… 154afb8 







shl...@iglu.org.… 0b07948 
shl...@cec68495-… 154afb8 























shl...@cec68495-… 28e12b6 
shl...@cec68495-… 154afb8 








































shl...@cec68495-… 28e12b6 
Shlomi Fish a02d6a6 
shl...@cec68495-… 28e12b6 
Shlomi Fish a02d6a6 
shl...@cec68495-… 28e12b6 


shl...@iglu.org.… 0b07948 
shl...@cec68495-… 28e12b6 
Shlomi Fish a02d6a6 
shl...@cec68495-… 28e12b6 



















shl...@cec68495-… 154afb8 

























#include '../template.wml'

<latemp_subject "Ravensborg’s Guild - A Logic Puzzle" />

<page_extra_head_elements>
<link rel="stylesheet" href="$(ROOT)/images/css/puzzles.css"
type="text/css" media="screen, projection" title="Normal" />
</page_extra_head_elements>

<h2>Recent Note</h2>

<p>
I discovered some misinformation in this puzzle, which was corrected,
and added an explanation of how to reach the solution.
</p>

<h2>Introduction</h2>

<p>
I originally wrote this puzzle for a Role-Playing Game tournament of my
friends’ local RPG club, back when I was in high school. It does not require
any knowledge in Fantasy Role Playing Games to solve.
</p>

<h2>The Puzzle Itself</h2>

<p>
There are five members in the council of Ravensborg’s Guild. Two of them
are thieves, two wizards and one warrior, that got there due to a wrong
number. It is known that thieves always lie; wizards say one true statements
and one false out of every two statements they utter, and warriors
always say the truth.
</p>

<p>
Can you find out according to the statements of the council members, the
profession of each one and who is the guild’s leader?
</p>

<table class="logic_sayings">

<tr>
<th>Name</th>
<th>Statements</th>
</tr>

<tr>
<td>Simon</td>
<td>
<ol>
<li>One of the thieves is Krenin.</li>
<li>The leader is a wizard.</li>
</ol>
</td>
</tr>

<tr>
<td>Lamber</td>
<td>
<ol>
<li>I am a thief.</li>
<li>I am not the leader.</li>
</ol>
</td>
</tr>

<tr>
<td>Krenin</td>
<td>
<ol>
<li>I am the leader</li>
<li>Rupert is a warrior.</li>
</ol>
</td>
</tr>

<tr>
<td>Walter</td>
<td>
<ol>
<li>Our warrior is Rupert.</li>
<li>Our warrior is the leader.</li>
</ol>
</td>
</tr>

<tr>
<td>Rupert</td>
<td>
<ol>
<li>Lamber is one of the thieves.</li>
<li>Our leader is one of the wizards.</li>
</ol>
</td>
</tr>
</table>

<p>
The solution can be found below.
</p>

<h2 style="margin-top: 50em">Solution</h2>

<p>
Lamber says he is a thief. If he were a thief, he would lie about it,
and if he were the warrior he would not say he was a thief. So he must be
a wizard whose statement #1 is false, and his #2 statement is true.
</p>

<p>
Rupert says that Lamber is a thief, so he’s lying in his #1 statement. So
he cannot be a warrior. Thus, Krenin and Walter are lying in their #2 and
\#1 statements respectively , and they cannot be warriors either. So the only
one who can be a warrior is Simon.
</p>

<p>
Simon testifies in his two true statements that Krenin is a thief and
that the leader is a wizard. So Krenin is a thief. Rupert in statement
\#2 testifies that their leader is a wizard, so this is a true statement
and he is a wizard. So Walter is a thief.
</p>

<p>
Now, since the leader is a wizard, and because Lamber is a wizard, and
he testifies in statement #2 that he is not the leader, then the leader must
be Rupert.
</p>

<p>
To sum up the results:
</p>

<table class="logic_sayings">
<tr>
<th>Name</th>
<th>Profession</th>
</tr>
<tr>
<td>Simon</td>
<td>Warrior</td>
</tr>
<tr>
<td>Lamber</td>
<td>Wizard</td>
</tr>
<tr>
<td>Krenin</td>
<td>Thief</td>
</tr>
<tr>
<td>Walter</td>
<td>Thief</td>
</tr>
<tr>
<td>Rupert</td>
<td>Wizard (Leader)</td>
</tr>
</table>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.