Develop a simple poker game complete with basic ai

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

Assignment: Simple 5-Card Poker Game

In this assignment, you will develop a simple poker game, complete with basic AI, using the object oriented programming principles discussed in class.

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

12. Indicate the winner on the screen.

Attachment:- Card Poker Game.rar

Reference no: EM131225507

Questions Cloud

How technology affects social skill development : How Technology affects Social Skill Development? Some people feel that technology has made our world smaller and more social with the ability to communicate 24/7 via email, use social networking, and text, IM.
What is its return on stockholders equity : What is its return on stockholders' equity? (Do not round intermediate calculations. Input your answer as a percent rounded to 2 decimal places.)
Prepare a journal entry for each transaction : Discuss the right of shareholders of capital stock for company A that they are entitled to. Company A is formed as a corporation and therefore, its shareholders have limited liability. Limited liabilitymeans that stockholders can only lose the amo..
Conduct complied with or violated the standard : Evaluate Sokol's conduct and determine which, if any, of the CFA Institute Standards of Professional Conduct are applicable. For each applicable Standard, determine whether conduct complied with or violated the Standard. What should Mikkel Orut do..
Develop a simple poker game complete with basic ai : In this assignment, you will develop a simple poker game, complete with basic AI, using the object oriented programming principles discussed in class.
Would you invest in government issued t-bills : Would you invest in government issued T-bills? Why or why not? Are there specific munis you would or would not invest in? What factors affect your choices? Discuss in detail. What is the current status of government securities? Evaluate and explain.
What is nan basis in her newco corporation stock : Nan receives Newco Corporation stock worth $70, and Newco Corporation assumes a $130 incurred liability of N with no improper tax motive on the part of Newco Corporation or Nan. What is Nan's basis in her Newco Corporation stock?
Differences between a corporation and a partnership : Q1. What are the main differences between a corporation and a partnership? Q2. Use your own words, please briefly explain why financial sectors are important.
Domestic and international financial marketplace : Topic include financial markets, types of financial intermediaries, the form and methods of stock market operation, the stock market, multinational corporation, foreign exchange rate quotations, trading in foreign exchange, forward and future cont..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that calculates an employees wage for a

write a program that calculates an employees wage for a week. an employees wage is calculated as followsi if the number

  Design and implement a c++ program for find friends

MCS2514Pgm1- Design and implement a C++ program that will help find friends according to a defined method. In particular, your program will find and display the ten people in database who answered a set of survey questions closest to what the user..

  Determines the access privillege of a derived class

The base class access specifier determines the access privillege of a derived class to its base class

  Write a program that will insert random integers

The value will be the random number. Use an iterator to print the two fields lined up on the right with field widths in two columns with the numbers labeled with centered column headings of Key and Value. Since the list is easier to work with, let..

  Write a program that inputs a line of text into char

8.6 (Displaying Strings in Uppercase and Lowercase) Write a program that inputs a line of text into char array s[100]. Output the line in uppercase letters and in lowercase letters.

  You are the admissions office at abc medical university

You are the Admissions Office at ABC Medical University. You have a large number of applicants for a very few number of available openings at your school. As a result, you need to set some high admission standards. To be accepted, a student ..

  Which of the following parameter passing mechanism

Which of the following parameter passing mechanism is/are supported by C++ but not in C? [A] Pass by value [B] Pass by reference

  Write the program with indentation and formatting style

Write the program with indentation and formatting style as discussed in class, and given in the program requirement. Write documentation for your programs as discussed in class and given in the program requirement.

  You will write a program that reads a text file

You will write a program that reads a text file, counts the number of words in the file, and the number of occurrences of each character. It will print to a file the number of words, and the number of occurrences of each character, as well as the ..

  Implements a cyclic redundancy check algorithm

Write a C++ program that Implements a cyclic redundancy check algorithm in C++: The program should provide a mechanism for inputting a stream of data 128 bytes in length. It should calculate a 32-bit CRC for that data. It should output the data strea..

  Different movie soundtracks in stock

Jenny White is shopping for CDs. She decides to purchase 3 movie soundtracks. The music store has 10 different movie soundtracks in stock. How many different selections of movie soundtracks are possible?

  Stored in the array points before line seven

Questions (i) to (vii) relate to the following code. A class called Point is defined and the code fragments that are called from main() are given line numbers 1 to 7.

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