Sunday, March 30, 2008
Dr. Dobbs and Microsoft - Game Challenge
http://dobbschallenge.com/
Submitting solution
Saturday, March 22, 2008
THE PUZZLE STATEMENT
You will write a program that will shuffle a deck of cards. Every program will compete against every other problem using the following criteria.
- Correctness of algorithm. (Did program work correctly).
- Least lines of code needed to program solution.
- Smallest Exe size in bytes.
If it sounds interesting, please submit a solution and submit as often as you want. Please join us in the forums for more details, current standings, how to submit your entry, and much discussion among the jolly band of .Net participants!
Solution must be in 2005 or 2008 Visual Studio using VB, C# or C++. Submit an entire solution and tell me which Visual Studio you used.
Input
The input consists of a text file; deck.txt. One line for each card. Deck of cards is not shuffled. See attached file.
2C 2 Clubs
3C
…
JC Jack of Clubs
AC Ace of Clubs
2D 2 Diamonds
;;;
AD Ace of Diamonds
etc
Output
The output consists of a text file. File should be your application name. I.e. myApplication.txt. One line for each card.
Program Name: mySort
Worked: Yes
Lines of Code: 75
Size of exe: 4096