mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
31 lines
596 B
C
31 lines
596 B
C
#include "dominion.h"
|
|
#include "dominion_helpers.h"
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <assert.h>
|
|
#include "rngs.h"
|
|
|
|
#define DEBUG 0
|
|
#define NOISY_TEST 1
|
|
|
|
int main () {
|
|
|
|
int r;
|
|
|
|
int k[10] = {adventurer, council_room, feast, gardens, mine,
|
|
remodel, smithy, village, baron, great_hall};
|
|
|
|
struct gameState G;
|
|
|
|
r = initializeGame(4, k, 1, &G);
|
|
|
|
printf ("initializeGame(4, k, 1, &G) = %d\n", r);
|
|
assert(r == 0);
|
|
|
|
r = supplyCount(adventurer, &G);
|
|
printf ("supplyCount(adventurer, &G) = %d\n", r);
|
|
assert(r == 10);
|
|
|
|
return 0;
|
|
}
|