Problem 51461. Pass the cards in Fitch Cheney's five-card trick
Cody Problem 51541 asked solvers to guess the card in Fitch Cheney's five-card trick. This problem is the counterpart: Write a function that takes five cards, selects four of them, and puts them in order to pass to the partner. See the previous problem for the rules. If the input string is '5C 7C 6S 4H 3D', the output string should be '5C 3D 6S 4H'. Some hands will have multiple possible answers. Your function needs only to provide one of them.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers2
Suggested Problems
-
Matrix indexing with two vectors of indices
732 Solvers
-
Sum the elements in either diagonal of a square matrix
213 Solvers
-
624 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
382 Solvers
-
Replace every 3rd element in a vector with 4
253 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!