int main() { testGreatHall(); return 0; }
int cardtest4() { struct gameState state; initState(&state); //set great hall to be in possition 5 of player 0's hand state.hand[0][5] = great_hall; //sending in 5 as the handPos of great_hall return testGreatHall(&state, 5); }
int main() { struct gameState G1; int n, i, p; printf ("Testing Card: Great Hall\n"); for (n = 0; n < 2000; n++) { for (i = 0; i < sizeof(struct gameState); i++) { ((char*)&G1)[i] = floor(Random() * 256); } p = floor(Random() * MAX_PLAYERS); G1.deckCount[p] = floor(Random() * MAX_DECK); G1.discardCount[p] = floor(Random() * MAX_DECK); G1.handCount[p] = floor(Random() * MAX_HAND); G1.playedCardCount = floor(Random() * MAX_DECK); G1.whoseTurn = p; testGreatHall(p, &G1); } printf("Testing Success!\n"); return 0; }