Exemple #1
0
int main(int argc, char const *argv[])
{
	/* code */
	testThrowDice();
	testNewGame();
	testGetTurnNumber();

	return 0;
}
Exemple #2
0
int main (int argc, const char * argv[]) {

    // Tests creating the new game, the initial turn number,
    // and getDiscipline and getDiceValue for random maps.
    testNewGame();

    // Checks that the turn number is incremented correctly
    // after each dice throw, using throwDice and getTurnNumber.
    testGetTurnNumber();

    // Checks that the game state is updated correctly after each dice
    // throw (e.g. students allocated to universities, conversions to
    // THDs) and that the game state is updated correctly after each
    // action (students removed, game state updated) using a sample
    // sequence of dice throws and actions.
    testStudentAllocationAndMakeAction();
    
    // Tests weather a games isLegalAction function will allow a player to
    // directly obtain IP or Paper. As well as moves during 'terra-nullis'.
    testisLegalAction();

    printf ("All tests passed!\nYou are Awesome\n");
    return EXIT_SUCCESS;
}