Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int matches, firstplayer, possible == 2;
- printf("How many matches do you want to play(10-100)?");
- scanf("%d", &matches);
- printf("Who will move the first turn? (1 COMPUTER 2 MAN");
- scanf("%d", firstplayer);
- //START !
- if (firstplayer == 1)
- {
- While(possible * 2 < num)
- {
- printf("There are %d matches on the table ", matches);
- printf("Possible move is [1..%d]. i take %d", possible, random(1, possible));
- possible=possible
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement