Card poker game develop a simple poker game complete with

Assignment Help C/C++ Programming
Reference no: EM13347384

Card Poker Game

Develop a simple poker game, complete with basic AI, using the object oriented programming principles discussed in class.

UML Class Diagram

Your assignment must contain and use the following classes:

Card and Deck Classes

The Card and Deck classes are direct carryovers from Lab #2. For more information about these classes, see the Lab #2 document on the course website.

Hand Class

You will need two instances of the Hand Class in your game: one for the player, and one for the computer. Each Hand will contain the respective player's current hand of cards. The hand class must have several helper methods that can be used to determine the strength of the hand. If you are unfamiliar with poker hands, Wikipedia has a related article that may be of interest.

PokerGame

Like the BlackJack class in Lab #2, the PokerGame class will be used to encapsulate all of the logic associated with playing the game of poker. The play method's operation will be discussed in the next section.

Flow of Play

Your poker game's play() method should operate as follows:

1. Deal the player five cards and display the results on the screen

2. Ask the player which cards he or she would like to exchange

3. Remove the desired cards from the player's hand

4. Deal the player N new cards (N = exchange amount)

5. Display the new hand on the screen

6. Deal the computer five cards and display the results on the screen

7. The computer determines how many cards to exchange based on the following logic:

a. zero cards if the computer has a four of a kind, full house, straight, or flush

b. one card if the computer has two pair

c. two cards if the computer has three of a kind

d. three cards if the computer has a pair

e. five cards if the computer has none of the above

8. Remove the appropriate number of cards in the computer's hand

9. Deal the computer the appropriate number of replacement cards

10. Display the new hand on the screen

11. Determine the winner of the game based on the following rankings:

a. Four of a kind

b. Full house

c. Flush

d. Straight

e. Three of a kind

f. Two Pair

g. Pair

h. High Card (ordered by Spade, Heart, Diamond, with Club being the lowest)

12. Indicate the winner on the screen

Reference no: EM13347384

Questions Cloud

Structure and based analysis of proteinsproteins may be : structure and based analysis of proteinsproteins may be classified according to both structural and sequence
Write a computer program to prepare a linear support vector : write a computer program to prepare a linear support vector machine svm. your program could be able to incorporate and
The final project will be a cumulative project that will : the final project will be a cumulative project that will span the weeks of the course. each week you will complete a
1 nbspnbsp process solutions provides a computer-based : 1 nbspnbsp process solutions provides a computer-based document processing service. the accountant has produced the
Card poker game develop a simple poker game complete with : card poker game develop a simple poker game complete with basic ai using the object oriented programming principles
You are needed to identify risk management issue of crowd : you are needed to identify risk management issue of crowd management at music festivals and write an essay which
What do you mean by financial index and commodity : what do you mean by financial index and commodity index?method of index uses in calculation?weighted average method?how
Write project and progress reports a business leter and : write project and progress reports. a business leter and reasearch paper for 10 mhz digital frequency meter with
Case study equip hireequip hire is a commercial and : case study equip hireequip hire is a commercial and domestic equipment hire company with 11 branches across

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd