staafl

Untitled

Jun 21st, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. string[] cards = new [] { "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A", "2", "3", "4", "5" };
  2.  
  3. ...
  4.  
  5. for (int i = 0; i < 13; i++)
  6. {
  7. ...
  8. if (countCards[i] == 1)
  9. {
  10. if ((countCards[i + 1] == 1) &&
  11. (countCards[i + 2] == 1) &&
  12. (countCards[i + 3] == 1) &&
  13. (countCards[i + 4] == 1))
  14. {
  15. Console.WriteLine("Straight");
  16. break;
  17. }
  18. else
  19. {
  20. counter++;
  21. }
  22. }
  23. ...
  24. }
  25. ...
Advertisement
Add Comment
Please, Sign In to add comment