Skip to content

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

Notifications You must be signed in to change notification settings

HaimOzer123/BlackJack-RTED-college-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages