Skip to content

Commit f0fdaad

Browse files
authored
Update README.md
1 parent a29b387 commit f0fdaad

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

07-blackjack/README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
# Blackjack
22

3-
## To use the code
3+
## Install G++ Compiler
4+
The g++ compiler is a free, open source compiler available on almost any operating system. g++ is part of the [GNU Compiler Collection](https://en.wikipedia.org/wiki/GNU_Compiler_Collection).
5+
6+
### Windows
7+
If you are running under the windows OS then I recommend you download: [MinGW-w64](http://mingw-w64.org/)
8+
9+
### macOS
10+
Just go to a terminal and type `g++` and it should offer to install
11+
12+
### Ubuntu
13+
```bash
14+
sudo apt install g++
15+
```
16+
17+
## Install Game
418
* Open Terminal and change the current working directory to the location where you want the cloned directory to be made.
519
* Download the repository using the [instruction](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository).
620
* In the command line go to the directory with the files downloaded:
721
```bash
822
cd cpp-games/07-blackjack
9-
```
10-
11-
**How to compile game using GCC C++ compiler (g++)**
12-
```bash
1323
g++ -o game -I ./lib *.cpp lib/*.cpp
1424
./game
1525
```

0 commit comments

Comments
 (0)