Running the Blackjack Game To compile and run the Blackjack game, use the following commands:
-
Compile the game: gcc -I Headers -o blackjack src/main.c src/game.c src/deck.c src/hand.c src/card.c src/split.c src/visuals.c src/insurance.c src/quitting_choice.c src/game_state.c src/phases_game.c
-
Run the game: ./blackjack.exe
Running the Test Suite To compile and run the test suite for verifying the card encoding, linked list operations, and scoring logic, use the following commands:
-
Compile the test suite: gcc -I Headers -o test_blackjack tests/test_blackjack.c src/card.c src/deck.c src/hand.c
-
Run the test suite: ./test_blackjack.exe
Running the Test for game state (one full game round)
-
Compile the test: gcc -I Headers -o test_gamestate tests/test_gamestate.c src/card.c src/deck.c src/hand.c src/game_state.c
Running the Specs for the code:
-
Compile all the specs together: gcc -DTESTING -I Headers -o all_specs spec/all_specs.c src/card.c src/deck.c src/hand.c src/game_state.c src/insurance.c src/split.c src/phases_game.c src/visuals.c src/quitting_choice.c
-
Run all the specs together: ./all_specs.exe