# Logic Application Homework

The following project uses the game of Guess Your Card. This is a game in which
each player draws (without looking) three (3) cards. Each card has a number between 1 and 9 on it. The players then place their cards on their heads so that everyone but the players can see the cards.

The object of the game is to guess what cards you have. The first person to do this correctly wins.

During the play, each player, in turn, draws a question at random from a stack of questions. The player then answers the question based on the cards that he /she sees (not the playerâ€™s cards, which the player cannot see).

An Example

• Andy has the cards 6, 6, and 7
• Belle has the cards 3, 6, and 7
• Carol has the cards 1, 1, and 9
• Dan has the cards 3, 4, and 8

Andy draws the question card, â€œHow many 7â€™s do you see?â€ He answers, â€œOne,â€ because he cannot see the 7 on his own head; he sees only the 7 on Belle’s head.

Next, Belle draws the question card, â€œOf the four even numbers, how many different even numbers do you see?â€ She answers, â€œThree,â€ because she sees the 4, 6, and 8 on Andy and Dan’s head.

From this, Dan can conclude he has two even cards, since he can only see a 6 and Belle sees two (2) more.

Situation

You are playing Guess Your Card with three (3) other players. Here is what you see:

• Andy has the cards 1, 5, and 7
• Belle has the cards 5, 4, and 7
• Carol has the cards 2, 4, and 6

Andy draws the question card, â€œDo you see two (2) or more players whose cards sum to the same value?â€ He answers, â€œYes.â€

Next Belle draws the question card, â€œOf the five (5) odd numbers, how many different
odd numbers do you see?â€ She answers, â€œAll of them.â€

Andy suddenly speaks up. “I know what I have,” he says. “I have a 1, a 5, and a 7.”

Write a one to three (1-3) page paper in which you:

1. Summarize the salient facts of the problem.
2. Explain your strategy for solving the problem.
3. Present a step-by-step solution of the problem.