Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/haimozer123/blackjack-rted-college-
- Owner: HaimOzer123
- Created: 2024-08-21T17:00:31.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T21:58:55.000Z (6 months ago)
- Last Synced: 2025-01-19T11:15:05.763Z (24 days ago)
- Topics: c, game-development, memory-management, rted
- Language: C
- Homepage:
- Size: 1.78 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.c2. 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.c2. 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.c2. 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.c2. Run all the specs together:
./all_specs.exe