Guest User

Untitled

a guest
Jun 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. printf("Please select a strategy for the computer to use:\n");
  2.     printf("1. Computer strategy 1\n2. Computer strategy 2\n");
  3.    
  4.     printf("\nWhich strategy do you select? ");
  5.     scanf("%d", chosenStrategy);
  6.    
  7.     if(chosenStrategy == 1) {
  8.         printf("Computer will use strategy 1, good luck!\n\n");
  9.         playerTurn();
  10.         printf("-----*****-----");
  11.         /*finish
  12.         computerStrat1();*/
  13.     }
  14.    
  15.     if(chosenStrategy == 2) {
  16.         printf("Computer will use strategy 2, good luck!\n\n");
  17.        
  18.         for(i=0; i<=10; i++) {
  19.            
  20.             roundScore = playerTurn();
  21.             roundScore = ps[round];
  22.             printf("-----*****-----");
  23.             computerStrat2();
  24.            
  25.             printBoard(ps, cs, round);
  26.         }
  27.     }
Add Comment
Please, Sign In to add comment