https://github.com/nishat-ahmad/casino
Casino with games that can be played in terminal including black jack, baccarat, Deal or no deal and slot machine. [CS101]
https://github.com/nishat-ahmad/casino
baccarat blackjack deal-or-no-deal slot-machine terminal-game
Last synced: 8 months ago
JSON representation
Casino with games that can be played in terminal including black jack, baccarat, Deal or no deal and slot machine. [CS101]
- Host: GitHub
- URL: https://github.com/nishat-ahmad/casino
- Owner: Nishat-Ahmad
- License: apache-2.0
- Created: 2023-12-29T06:22:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T16:03:06.000Z (over 1 year ago)
- Last Synced: 2025-01-07T19:38:04.988Z (9 months ago)
- Topics: baccarat, blackjack, deal-or-no-deal, slot-machine, terminal-game
- Language: C++
- Homepage:
- Size: 163 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Casino
## Overview
This project consists of multiple casino games, including Blackjack, Baccarat, Slot Machine, and Deal or No Deal. The games are implemented in C++ and provide a console-based interface for users to interact with. The starting balance for the player is $10,000. The goal is to manage your earnings effectively.## Files and Structure
- `main.cpp`: This is the entry point of the application where the user is prompted to choose a game to play.
- `BlackJack.h`: Contains the implementation of the Blackjack game.
- `Baccarat.h`: Contains the implementation of the Baccarat game.
- `SlotMachine.h`: Contains the implementation of the Slot Machine game.
- `DealOrNoDeal.h`: Contains the implementation of the Deal or No Deal game.
- `UserInterface.h`: Contains helper functions for displaying rules and the welcome message.## Dependencies
- C++ standard libraries: ``, ``, ``, ``, ``, ``, ``, ``## How to Play
### Main Menu
Upon starting the program, you will be presented with a main menu where you can choose which game to play:
- Enter `1` to play Blackjack.
- Enter `2` to play Slot Machine.
- Enter `3` to play Baccarat.
- Enter `4` to play Deal or No Deal.
- Enter `0` to exit the program.### Blackjack
1. You start with a bet and the goal is to beat the dealer without exceeding 21.
2. You can `Hit` to draw another card or `Stand` to keep your current hand.
3. The game compares your hand with the dealer's to determine the winner.### Baccarat
1. Place a bet on either the Player, Dealer, or a Draw.
2. The game deals two cards each to the Player and the Dealer.
3. Depending on the total points, additional cards may be drawn.
4. The winner is determined based on the hand closest to 9.### Slot Machine
1. Place a bet and spin the slot machine.
2. The game displays a grid of symbols.
3. Payout is determined based on matching symbols.### Deal or No Deal
1. Choose a case that contains a random amount of money.
2. Open other cases to reveal their amounts.
3. Receive offers from the banker and decide whether to accept the deal or continue opening cases.
4. The game continues until you either accept an offer or all cases are opened.## Game Rules
Detailed rules for each game can be accessed within the program by choosing the appropriate options in the main menu.## Authors
**HassanIqbal715** wrote **BlackJack.h**, **AhmadSaeedZaidi** wrote **Baccarat.h** and **SlotMachine.h**. While **Nishat-Ahmad** wrote main.cpp, UserInterface.h and DealOrNoDeal.h, while also making changes to HassanIqbal715 and AhmadSaeedZaidis work so that all of the code can work together.## Intent
It was the final project for our first CS101 : Computer Programming course.Enjoy playing!