This repository contains a simple command-line-based Blackjack game implemented in C. Players can play the game against a computer dealer, place bets, and try to beat the dealer's hand. The game features colorful ASCII art cards and keeps track of wins, losses, and draws.
- Run the program.
- Follow the prompts to start the game, place bets, and make decisions to hit or stay.
- Try to reach a hand value of 21 without going over. If your hand is closer to 21 than the dealer's hand, you win!
- Colorful ASCII art cards for a visually appealing experience.
- Betting system to simulate a casino environment.
- Keeps track of wins, losses, and draws.
- Simple command-line interface.
main.c
: The main program file containing the game logic.colors.h
: Header file defining color codes for ASCII art cards.prototypes.h
: Header file defining function prototypes.blackjack.txt
: A text file to store game results.
- Clone the repository to your local machine.
- Compile the program using a C compiler (e.g., GCC).
- Run the compiled executable.
- C compiler (e.g., GCC)
This project is licensed under the MIT License. Feel free to modify and use it for your own purposes.
Malik Shahzaib
Enjoy playing Blackjack!