-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
64 lines (52 loc) · 1.12 KB
/
main.c
File metadata and controls
64 lines (52 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/** @file main.c
*
* @brief This file contains the main function and is used to
* drive all other functions.
*
* @par
* Kasey Clarke June 6 2025
*/
#include "cards/cards.h"
#include "results/pregame.h"
#include "random/random.h"
#include "shuffle/shuffle.h"
#include "results/postgame.h"
#include "player/player.h"
#include "dealer/dealer.h"
#include "rounds/rounds.h"
#if DEBUG
#include "tests/tests.h"
#endif
/*!
* @brief The main function for FLIP 7
*
* @param void
*
* @return Return ommited.
*/
int main ()
{
card_t deck[NUM_CARDS];
init_deck(deck);
seed_random();
results_t tally[STOPPING_RANGE + 1];
clear_tally(tally);
#if DEBUG
test_internals();
test_init_deck(deck);
test_quantities(deck);
test_total_points(deck);
shuffle(deck);
test_quantities(deck);
test_total_points(deck);
test_player();
test_rounds();
#else
print_card_analysis(deck);
print_deck_analysis(deck);
run_all_rounds(tally, deck);
notes();
print_result_analysis(tally);
#endif
}
/*** end of file ***/