Black Jack Project

Nov 9, 2020 at 9:50pm
The hotel owner wants to update the blackjack game you previously created to make it faster.

Write a Blackjack game using classes and linked list.

Requirements are:

The dealer has to keep getting cards until their score is 17, they go over 21 or they take five cards
Must generate a new deck at the start of the game and shuffle the deck before each hand
Guest can play as many hands as they would like
If the dealer goes over 21 and a player goes over 21 the game is a push
Minimum class that must be implemented are:
A class for card
A class for card deck
Card deck should hold 52 cards
A class for player
A class for dealer
Dealer should inherit from player
Dealer should make sure they cannot hold with a score less than 17 or less than 5 cards whichever comes first
A class for table
Table must implement four players and one dealer and one card deck. The table is where all game action must take place.
The card deck and player classes must use linked list to hold card.



Heres the Code i have. I just need the Card, Deck, and Player classes to be converted to linked lists.


https://drive.google.com/drive/folders/1I0azOJDZFlBV0XeU40X2IM1ChjMIXVTx?usp=sharing
Nov 10, 2020 at 4:31am
Most student linked list exercises I've seen have a data member of int.

All you need is a linked list class adapted via a template <T> as the data member of each Node instead of an int.
Nov 12, 2020 at 6:39pm
Would you be able to show an example using my code? I literally have no idea what you mean.
Nov 12, 2020 at 7:29pm
The hotel owner wants to update the blackjack game you previously created to make it faster.

Write a Blackjack game using classes and linked list.

Does he want it faster or does he want a linked list?!
Nov 13, 2020 at 6:13am
That first sentence is just flavor from my Professor. The Linked Lists are what need to be done.
Nov 13, 2020 at 11:52am
Heres the Code i have.
I see, and yet you don't know what a linked list is?

https://www.geeksforgeeks.org/linked-list-set-1-introduction/
Nov 13, 2020 at 1:18pm
The assignment does't say you have to a write a linked list so you could use std::list
https://en.cppreference.com/w/cpp/container/list
Last edited on Nov 13, 2020 at 1:18pm
Nov 13, 2020 at 1:37pm
Write a Blackjack game using classes and linked list.
Nov 13, 2020 at 3:57pm
using vs writing. I believe they probably DO want you to make your own list, but professors are among the worst at giving requirements, only slightly ahead of nontechnical managers.
Topic archived. No new replies allowed.