# Liars and Truth-Tellers

Liars and Truth-Tellers is a class of riddles where you have to figure out some piece or pieces of information by asking yes-or-no questions to fictional characters who will either always tell the truth (Truth-Tellers) or always lie (Liars). Occasionally, a third type is brought in that answers completely randomly (Randoms).

The riddles usually require one to figure out the information using the smallest possible number of questions, and the number is usually quite small.

## Easy Problem

You are standing at a fork in the road, and you would like to know which way is the next town. Before you are a Liar and a Truth-Teller, but you don't know which is which. Figure out one yes-no question that you can ask one of the people before you that will enable you to figure out the correct road.

## Hard Problem

Same situation as the first easy problem, but instead of two people, there are three people: a Truth-Teller, a Liar, and a Random. Use two questions to figure out the correct road.

You may ask the two questions to different people or to the same person. You can use the answer to the first question to determine who you ask the second question to and what you ask him.

## Very Hard Problem

Same setup as the hard problem, but now, even though the three people before you know and understand English, they answer your questions in their native tongue using the words "Ja" and "Da". These words translate as "yes" and "no", but you don't know which word means what. It is rather surprising, but you can still find the correct road using only two questions.

## Hints

- For the first problem, think about how you can get the guy you ask the question to to talk about what the other person would say. How does this help you?
- For the second two problems, does asking a question to the Random tell you any information at all? How can you use your first question to ensure that you don't ask your second question to the Random?
- How can you combine multiple questions into one to cover contingencies?