Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with my OOP programming assignment to deal a bridge hand using STL containers and algorithms. MUST use one container and one algorithm at

Need help with my OOP programming assignment to deal a bridge hand using STL containers and algorithms. MUST use one container and one algorithm at least and try to reduce use of loops. Ex. using foreach to shuffle. Thanks!

image text in transcribed

Introduction The name of the card game Bridge' comes from Russian Whist, called "biritch," meaning announcer or herald. Bridge players announce their contract bids The game of bridge begins with shuffling and dealing a bridge hand. A bridge deal divides a 52-card deck into four hands of 13 cards each. The hands are labeled North, East, South and West. A bridge deck has four suits: Clubs, Diamonds, Hearts, and Spades. In each suit, the cards are labeled Ace, King, Queen, Jack, 10, 9, .., 2 Major bridge tournaments play with computer-generated hand Specific Instructions Write a program that initializes a deck of cards and simulates shuffling it and dealing a bridge hand. This involves dealing 5 cards to each player in the first round followed by two rounds of 4 cards each. Also, the user should be allowed repeated attempts for as long as You are to use STL containers and algorithms that you find appropriate. In particular, you are required to use at least one container, and one algorithm to implement this problem Use of iterators is highly encouraged. Kindly remember that the STL algorithm is not a method of the container. Additionally, attempt to eliminate all loops (e.g. for or while loops) from the application This assignment will include a section where you will justify the use of the container you chose. This should include details of the time complexity of the methods involved. Include all the source code (well documented) and sufficient representative output. You encouraged to use assertions/exception handling and unit testing. Introduction The name of the card game Bridge' comes from Russian Whist, called "biritch," meaning announcer or herald. Bridge players announce their contract bids The game of bridge begins with shuffling and dealing a bridge hand. A bridge deal divides a 52-card deck into four hands of 13 cards each. The hands are labeled North, East, South and West. A bridge deck has four suits: Clubs, Diamonds, Hearts, and Spades. In each suit, the cards are labeled Ace, King, Queen, Jack, 10, 9, .., 2 Major bridge tournaments play with computer-generated hand Specific Instructions Write a program that initializes a deck of cards and simulates shuffling it and dealing a bridge hand. This involves dealing 5 cards to each player in the first round followed by two rounds of 4 cards each. Also, the user should be allowed repeated attempts for as long as You are to use STL containers and algorithms that you find appropriate. In particular, you are required to use at least one container, and one algorithm to implement this problem Use of iterators is highly encouraged. Kindly remember that the STL algorithm is not a method of the container. Additionally, attempt to eliminate all loops (e.g. for or while loops) from the application This assignment will include a section where you will justify the use of the container you chose. This should include details of the time complexity of the methods involved. Include all the source code (well documented) and sufficient representative output. You encouraged to use assertions/exception handling and unit testing

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Do humorous ads work and if so under what conditions?

Answered: 1 week ago

Question

Know how to find a consultant

Answered: 1 week ago

Question

=+Are the contracts enforceable?

Answered: 1 week ago