Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int matches, firstplayer, possible == 2;
  5. printf("How many matches do you want to play(10-100)?");
  6. scanf("%d", &matches);
  7. printf("Who will move the first turn? (1 COMPUTER 2 MAN");
  8. scanf("%d", firstplayer);
  9. //START !
  10. if (firstplayer == 1)
  11. {
  12. While(possible * 2 < num)
  13. {
  14. printf("There are %d matches on the table ", matches);
  15. printf("Possible move is [1..%d]. i take %d", possible, random(1, possible));
  16. possible=possible
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement