https://github.com/ineshbose/blackjack_cpp
A terminal-version of BLACKJACK written in C++
https://github.com/ineshbose/blackjack_cpp
blackjack card-game cpp game
Last synced: 7 months ago
JSON representation
A terminal-version of BLACKJACK written in C++
- Host: GitHub
- URL: https://github.com/ineshbose/blackjack_cpp
- Owner: ineshbose
- License: mit
- Created: 2020-02-17T01:35:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T16:12:41.000Z (over 5 years ago)
- Last Synced: 2025-03-17T11:11:26.593Z (7 months ago)
- Topics: blackjack, card-game, cpp, game
- Language: C++
- Homepage:
- Size: 64.1 MB
- Stars: 25
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ♠️ Blackjack (C++)
[](https://ci.appveyor.com/project/ineshbose/blackjack-cpp)
[](https://travis-ci.org/github/ineshbose/blackjack_cpp)
[](https://app.codacy.com/manual/ineshbose/Blackjack_CPP)
[](LICENSE)
[](https://repl.it/github/ineshbose/blackjack_cpp)Developed in order to repolish my C++ skills and as my first C++ repository. Have had many memories playing blackjack while being drunk with flatmates during the first year of uni.
## 🔧 Setup
### Cloning
You should have [Git](https://git-scm.com/) installed and use the following commands in your terminal in your preferred directory
```sh
$ git clone https://github.com/ineshbose/Blackjack_CPP
$ cd Blackjack_CPP
```
else you can download a [ZIP](https://github.com/ineshbose/Blackjack_CPP/archive/master.zip).### Building / Compiling
There are four options available ordered by recommendation. You should compile the program in the `build` directory.
```sh
$ cd build
```#### CMake
```sh
$ cmake .. # generates build configuration (Makefile)
$ cmake --build . # or `make` to build the executable
$ ./blackjack # viola!
```#### Meson
```sh
$ meson .. # generates build configuration (ninja)
$ ninja # builds the executable
$ ./blackjack # viola!
```#### Make
```sh
$ cd .. # if you are in the build directory
$ make # builds executable based on Makefile
$ ./blackjack # viola!
```#### g++
```sh
$ cd .. # if you are in the build directory
$ g++ src/blackjack.cpp src/card.cpp src/dealer.cpp src/deck.cpp src/game.cpp src/human.cpp src/player.cpp src/print.cpp src/statistics.cpp -o blackjack
$ ./blackjack # viola!
```## 🙌 Contributing
Any kind of contributions / improvements are greatly appreciated!
* To report any bug, [raise an issue](https://github.com/ineshbose/Blackjack_CPP/issues).
* To make changes to this repository, [create a pull request](https://github.com/ineshbose/Blackjack_CPP/pulls).All contributors will be thanked and named in the README. 😄