<mosaic.cnfolio.com>
PROGRAM
  1. 001   #include <stdio.h>
  2. 002   #include <stdlib.h>
  3. 003   #include <time.h>
  4. 004   #include <math.h>
  5.  
  6.  
  7. int main( void )
  8.  
  9. {
  10.  
  11.    int welcome();
  12.    int numberofcardsplayer1
  13.    int numberofcardsplayer2
  14.    int
  15.    printf("Player 1 enter your number of cards");
  16.    scanf("%d",& numberofcardsplayer1);
  17.    printf("Player 2 enter your number of cards");
  18.    scanf("%d",& numberofcardsplayer2);
  19.    
  20.    if numberofcardsplayer1
  21.    
  22.    int playGame();
  23.    
  24.    int getComparison(card*firstCard,card*secondCard,int index)
  25.  
  26.  
  27.    
  28.    
  29. }
  30.    /*pseudo code
  31.    Input Number of Player One Cards
  32. Suppress Leading Zeros
  33. Check Input = 2 - 10
  34.  
  35. IF  Integer = 1 then Allow
  36. IF  Integer = 2 then Allow
  37. IF  Integer = 3 then Allow
  38. IF  Integer = 4 then Allow
  39. IF  Integer = 5 then Allow
  40. IF  Integer = 6 then Allow
  41. IF  Integer = 7 then Allow
  42. IF  Integer = 8 then Allow
  43. IF  Integer = 9 then Allow
  44. IF  Integer = 10 then Allow
  45.  
  46. OR output error code
  47.  
  48. Output Player 1 Card Total
  49.  
  50. Player 1 input string and error check
  51.  
  52. Input string of Player One Cards
  53.  
  54. IF String = Integer space (card numbers-1) then go to Alpha Swap OR go to error message
  55.  
  56. Suppress Leading Zeros
  57.  
  58. Substitute Number For Letter
  59.  
  60. IF  Integer = 1 then Substitute = J
  61. IF  Integer = 2 then Substitute = I
  62. IF  Integer = 3 then Substitute = H
  63. IF  Integer = 4 then Substitute = G
  64. IF  Integer = 5 then Substitute = F
  65. IF  Integer = 6 then Substitute = E
  66. IF  Integer = 7 then Substitute = D
  67. IF  Integer = 8 then Substitute = C
  68. IF  Integer = 9 then Substitute = B
  69. IF  Integer = 10 then Substitute = A
  70.  
  71. OR output error code
  72.  
  73. Output Player 1 Alpha String
  74.  
  75. Output Error code
  76.  
  77.  
  78.  
  79. Variance check between players number  of cards
  80.  
  81. IF Player 1 Number of Cards > Player 2 Number of Cards
  82.  
  83. Output V = Player 1 Cards Minus Player 2 Cards
  84.  
  85. Or
  86.  
  87. IF Player 2 Number of Cards > Player 1 Number of Cards
  88.  
  89. Output V = Player 2 Cards Minus Player 1 Cards
  90.  
  91. Or
  92.  
  93. IF Player 1 Number of Cards = Player 2 Number of Cards
  94.  
  95. Then Output V = 0
  96.  
  97.  
  98. Sort Player 1 Alpha String Alphabetically A-J
  99.  
  100. If A replace with 01
  101.  
  102. If B replace with 02
  103.  
  104. If C replace with 03
  105.  
  106. If D replace with 04
  107.  
  108. If E replace with 05
  109.  
  110. If F replace with 06
  111.  
  112. If G replace with 07
  113.  
  114. If H replace with 08
  115.  
  116. If I replace with 09
  117.  
  118. If J replace with 10
  119.  
  120.  
  121. Output Integer String For Truncation
  122.  
  123. Sort Player 2 Alpha String Alphabetically A-J
  124.  
  125. If A replace with 01
  126.  
  127. If B replace with 02
  128.  
  129. If C replace with 03
  130.  
  131. If D replace with 04
  132.  
  133. If E replace with 05
  134.  
  135. If F replace with 06
  136.  
  137. If G replace with 07
  138.  
  139. If H replace with 08
  140.  
  141. If I replace with 09
  142.  
  143. If J replace with 10
  144.  
  145.  
  146. Output Integer String For Truncation
  147.  
  148. If v = 0 Truncate String by 0 Digits
  149.  
  150. If v = 1  Truncate String by 2 Digits
  151.  
  152. If v = 2  Truncate String by 4 Digits
  153.  
  154. If v = 3  Truncate String by 6 Digits
  155.  
  156. If v = 4  Truncate String by 8 Digits
  157.  
  158. If v = 5   Truncate String by 10 Digits
  159.  
  160. If v = 6   Truncate String by 12 Digits
  161.  
  162. If v = 7   Truncate String by 14 Digits
  163.  
  164. If v = 8   Truncate String by 16 Digits
  165.  
  166. Output Player 1s Truncated Integer
  167.  
  168.  
  169. If v = 0 Truncate String by 0 Digits
  170.  
  171. If v = 1  Truncate String by 2 Digits
  172.  
  173. If v = 2  Truncate String by 4 Digits
  174.  
  175. If v = 3  Truncate String by 6 Digits
  176.  
  177. If v = 4  Truncate String by 8 Digits
  178.  
  179. If v = 5   Truncate String by 10 Digits
  180.  
  181. If v = 6   Truncate String by 12 Digits
  182.  
  183. If v = 7   Truncate String by 14 Digits
  184.  
  185. If v = 8   Truncate String by 16 Digits
  186.  
  187. Output Player 2s Truncated Integer
  188.  
  189.  
  190. IS P1 Truncated String
  191.  
  192. > < or  =
  193.  
  194. P2 Truncated String
  195.  
  196.  
  197. Strings Identical
  198.  
  199. IF Player 1 V Value > Player 2 V Value
  200. Output player 1
  201.  
  202. IF Player 1 V Value > Player 2 V Value
  203. Output player 2
  204.  
  205. IF Player 1 V Value = Player 2 V Value
  206. Output Draw
  207.  
  208. >P1
  209. Output player 1 wins
  210.  
  211. <P1
  212. Output player 2 wins
  213. */