Hello,
Currently I am supposed to develop a poker project in C. I am struggling in this part and my teacher won't realy help...
Each card can be represented by 2 characters: the first character represents its value and the second character represents its suit. Possible values: A, 2, 3, 4, 5, 6, 7, 8, 9, T, J, Q, K. Possible suits: C, E, O, P. There are 10 different combinations (1 - high card, 2 - pair, 3 - two pair, 4 - three of a kind, 5 - straight, 6 - flush, 7 - full house, 8 - four of a kind, 9 - straight flush, 10 - royal flush). The objective is to identify the poker hand (combination) in the 5 cards inserted by the user in the terminal and to write the integer value in stdout accordingly to the identified hand.
If someone could develop this code, so that I might understand it then itwould greatly help me.
Tank you for your time.