#include #include #include main() { srand((unsigned) time(NULL)); int j1, j2, j3; char *hand1, *hand2, *result; j1 = rand() % 3; j2 = rand() % 3; j3 = j1 - j2; if(j1 == 0) hand1 = "gu"; else if(j1 == 1) hand1 = "choki"; else hand1 = "pa"; if(j2 == 0) hand2 = "gu"; else if(j2 == 1) hand2 = "choki"; else hand2 = "pa"; if(j3 == 0) result = "Even"; else if(j3 == -1 || j3 == 2) result = "You win (^o^)"; else result = "You lose (;_;)"; printf("Your hand: \"%s\"\n", hand1); printf("My hand: \"%s\"\n", hand2); printf("%s\n", result); return(0); }