Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string[] cards = new [] { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A", "2", "3", "4", "5" };
- ...
- for (int i = 0; i < 13; i++)
- {
- ...
- if (countCards[i] == 1)
- {
- if ((countCards[i + 1] == 1) &&
- (countCards[i + 2] == 1) &&
- (countCards[i + 3] == 1) &&
- (countCards[i + 4] == 1))
- {
- Console.WriteLine("Straight");
- break;
- }
- else
- {
- counter++;
- }
- }
- ...
- }
- ...
Advertisement
Add Comment
Please, Sign In to add comment