I have an assignment in which I need to identify a hand of Texas Hold Em
Here is the assignment: http://www.scribd.com/doc/142850594/proj1
And here is my code: http://pastebin.com/Ts387iDw
What I don't quite understand is how to get the program to read from the file ,with the hands in it, or how I should get it to sort through and identify the hand.
If someone told me to design a program like this from scratch with no guidelines, what I would have done is assign all 52 cards a uniquie ID, then define a type of hand like a royal flush, and use an if statement to see if the IDs match up to the defined type of hand. However, I just have a gut feeling that this is considerably less efficient than the manner my professor demonstrated in the assignment (he is the professor after all). Any help is appreciated, thanks!