Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/haimozer123/blackjack-rted-college-

Blackjack Game in C: Implementing and Testing Core Game Mechanics Using Linked Lists
https://github.com/haimozer123/blackjack-rted-college-

c game-development memory-management rted

Last synced: 24 days ago
JSON representation

Blackjack Game in C: Implementing and Testing Core Game Mechanics Using Linked Lists

Awesome Lists containing this project

README

        

# RTED college - C Language For Embedded: Final project, BlackJack game.
Haim Ozer
Student I.D: 316063569
Date: 18/08/2024 ~ 20/9/2024
Lecturer: Shmuel
--------------------------------------------------------------------------

# BlackJack
Running the Blackjack Game
To compile and run the Blackjack game, use the following commands:

1. 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

2. 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:

1. Compile the test suite:
gcc -I Headers -o test_blackjack tests/test_blackjack.c src/card.c src/deck.c src/hand.c

2. Run the test suite:
./test_blackjack.exe
--------------------------------------------------------------------------
Running the Test for game state (one full game round)

1. 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

2. Run the test:
./test_gamestate.exe
--------------------------------------------------------------------------
Running the Specs for the code:

1. 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

2. Run all the specs together:
./all_specs.exe