<mosaic.cnfolio.com>
PROGRAM
  1. #include <stdio.h>
  2.  
  3. int main (void)
  4. {
  5.    int Player1 = 5;
  6.    int Player2 = 3;
  7.    
  8.    printf("Player 1's score is %d, ", Player1);
  9.    printf("Player 2's score is %d", Player2);
  10. }
  11. /*
  12.  
  13.  
  14. int main (void)
  15. {
  16. Player 1 cards = Random;
  17. Player 2 cards = Random;
  18. Random number from 1-10;
  19. Number of cards from 2-10;
  20. Sort numbers from (== 10, == 9, == 8, == 7, == 6, == 5, == 4, == 3, == 2, == 1);
  21. Player 1 shows first card, Player 2 shows first card
  22. If
  23. {
  24. Player 1’s card is < Player 2’s card
  25. Printf: Player 1 wins.
  26. Break;
  27. }
  28. Else if
  29. {
  30. Player 1’s card is == Player 2’s card
  31. Back to first if statement if both players still have cards to show after;
  32. Break;
  33. }
  34. Else if
  35. {
  36. Player 1 runs out of cards;
  37. Printf: Player 2 wins;
  38. Break;
  39. }
  40. Else if
  41. {
  42. Player 2 runs out of cards;
  43. Printf: Player 1 wins;
  44. Break;
  45. }
  46. Else if
  47. {
  48. Player 2’s card is < Player 1’s card
  49. Printf: Player 2 wins.
  50. Break;
  51. }
  52. Else if
  53. {
  54. Player 2’s card is == Player 1’s card
  55. Back to first if statement if both players still have cards to show after;
  56. Break;
  57. }
  58. Else
  59. {
  60. Both players run out of cards;
  61. Printf: Draw
  62. Break;
  63. }
  64. }
  65. */