ASSIGNMENT 1 LOGIC APPLICATION Andy, Belle, Carol, and I are playing the game Guess Your Card. In the game, each person draws three cards without looking from a stack of cards containing contain multi
ASSIGNMENT 1 LOGIC APPLICATION Andy, Belle, Carol, and I are playing the game Guess Your Card. In the game, each person draws three cards without looking from a stack of cards containing contain multi
ASSIGNMENT 1 LOGIC APPLICATION
Andy, Belle, Carol, and I are playing the game Guess Your Card. In the game, each person draws three cards without looking from a stack of cards containing contain multiple cards ranging in denomination from one to nine. Each person then places the cards on his or her forehead so that all of the other players can see the others’ cards but cannot see their own.
There is also a stack of questions that each person draws from in turn. These questions help the players deduct the identities of their own cards. We have shuffled the deck and each player has drawn three cards and placed them on their own forehead. Andy has drawn 1, 5, and 7; Belle has drawn 5, 4, and 7; and Carol has drawn 2, 4, and 6. Obviously I cannot see my own cards. Andy draws the first question, which asks, “Do you see two or more players whose cards sum to the same value?” To which he answers, “Yes.” Belle’s turn is next. Her card asks, “Of the five odd numbers, how many different