Problem 60780. Play Hocus Focus
The card game Hocus Focus starts by placing twelve cards with wizards face up on a table. The characteristics of the wizards that can change from card to card are the size of the robe and the colors of the robe, wand, hat, and shoes. There are three robe sizes and four of each color. Players draw a card from the deck and identify one card out of the twelve on the table that has none of the five characteristics in common with the new card.
Write a function to identify one card that has nothing in common with the cards on the table. Each card will be a column vector with the first four numbers ranging from 1 to 4 and the fifth number ranging from 1 to 3. Therefore, the table cards will be a 5x12 matrix. If no cards work, set the output to 'No cards work'.
Years ago, my mother-in-law couldn’t summon the patience to play this game, and her granddaughters, EmilyR and JessicaR, were greatly amused. We brought this game on our most recent visit to test her patience and amuse ourselves again.
Image adapted from ultraboardgames.com
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers8
Suggested Problems
-
8 Solvers
More from this Author291
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!