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

  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