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.
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.
- C++ standard libraries:
<iostream>
,<cstdlib>
,<ctime>
,<string>
,<windows.h>
,<algorithm>
,<list>
,<iomanip>
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.
- You start with a bet and the goal is to beat the dealer without exceeding 21.
- You can
Hit
to draw another card orStand
to keep your current hand. - The game compares your hand with the dealer's to determine the winner.
- Place a bet on either the Player, Dealer, or a Draw.
- The game deals two cards each to the Player and the Dealer.
- Depending on the total points, additional cards may be drawn.
- The winner is determined based on the hand closest to 9.
- Place a bet and spin the slot machine.
- The game displays a grid of symbols.
- Payout is determined based on matching symbols.
- Choose a case that contains a random amount of money.
- Open other cases to reveal their amounts.
- Receive offers from the banker and decide whether to accept the deal or continue opening cases.
- The game continues until you either accept an offer or all cases are opened.
Detailed rules for each game can be accessed within the program by choosing the appropriate options in the main menu.
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.
It was the final project for our first CS101 : Computer Programming course.
Enjoy playing!