| You are here: | About>Computing & Technology>C / C++ / C#> Projects> Programming Challenges> Programming Challenge 11 - Find Matching Sets of Cards (Completed) |
![]() | C / C++ / C# |
![]() Programming Challenge 11 - Find Matching Sets of CardsThis programming Challenge ran until the end of April 2008 and is about matching cards from the card game Set. Invented in 1991 by geneticist Marsha Falco; you can't find a simpler type of game that really stretches your brain.
The game has 81 cards each with four varying characteristics.
The game rules are simple- 12 cards are put down on the table in front of the players and you have to identify a matching set of three before anyone else. The player who spots a set first gets those cards. Then three more cards are put down on the table and it continues until all cards are out and no more sets can be found. The player with the most sets wins. A matching set is one where the three cards have each of the 4 characteristics all the same or different. For example you can have a set where the shapes and colors are different but the shading and numbers are the same. The picture from Wikipedia shows a set where all 4 characteristics are different. You can try the game out online at the Set website or play it online at the New York Times Set Game. (Note About.com is owned by the New York Times) The ChallengeWrite a program that simulates the Set game. Specifically it
ResultsThere were five entrants, 1 in C, 1 in C++ and three C#. The winner was the C++ version.
RulesThis is for glory only. About.com does not permit prizes to be given.Please submit your source code and the output file to the cplus.guide@about.com?subject=Programming Challenge 11 email address with the subject line Programming Challenge 11. It must compile with Open Watcom, Microsoft Visual C++ 2005/2008 Express Edition/Microsoft Visual Studio 2003/2005/2008 or Borland Turbo C++ Explorer, Microsoft Visual C# 2005/2008 Express Edition. If it doesn't compile, it can't be run so is automatically disqualified Please include your name, age (optional), blog/website url (optional) and country. Your email address will not be kept, used or displayed except to acknowledge your challenge entry. You can submit as many entries as you like before the deadline which is April 30 2008. The top three entries will be listed according to speed with fastest is best. A condition of entry is that you allow your source code to be published on this website, with full credits to you as the author. Have fun! More Programming Challenges
|
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |



