Find Jobs
Hire Freelancers

C++ project

$10-30 USD

Cancelled
Posted almost 7 years ago

$10-30 USD

Paid on delivery
I need this project done as soon as possible with all requirements/ constraints met. Also program needs 3 bonus features such as multiple input validations or anything else. A Person class holds the first and last name of a person. In addition to it’s constructors, it has a Show() method that displays both names and other class data. It also has a Drink() method which causes the bartender to pour a drink. This method has a 10% chance of getting called every turn. A Gunslinger class derives from the Person class. It has a Draw() method that returns a type double value representing a gunslinger’s draw time (from 1 to 10). The class also has an int member representing the number of notches on the gunslinger’s gun. It has a play() method to generate cards like the PokerPlayer() below. A PokerPlayer class derives virtually from the Person class. It has a Play() method that returns a random number in the range 1 .. 52, representing a card value. The highest card value wins. The PokerPlayer class uses the Person show() function. Define all these classes and methods, along with any other necessary methods. A CardSharp() class is also a child of the Person() class. It has a Draw() method that also returns a draw time, but it is an int ranging from 5 to 15. There is a Play() method which returns a random card, like PokerPlayer(), but part of the time (25%) it will cheat and use a card already used. The Gunslinger() class has a 50% chance of detecting this and shooting the CardSharp(). See the shooting behavior below. Each drink increases the chance of cheating by +5%. Finally, we have a Bartender() class. The Draw() method for this class will cause it to pour a beer. Create a saloon where 4 random players are playing poker. If two players shoot each other, the one with the lowest score wins. Shot players are always killed and replaced with a random player. Every turn display what the various characters are doing while they play poker. The game ends when all the cards are played and the player who has won the most hands is the winner. Constraints. • Include methods for setting object values Include in every class a method which will show all the data for that class. • Randomly select a name for each character. • Make sure you have 1 of each class playing to start. Suggested Bonus Features. • Define a Card class with a suit and face value members and use a Card return value for Draw() Code must run on a Ubuntu 16.04 linux system. It must compile with the following g++ -std=c++11 -g -Wall <[login to view URL]>
Project ID: 13820618

About the project

13 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
13 freelancers are bidding on average $43 USD for this job
User Avatar
Bid Summary Hi, I would like to do this project if given the opportunity. Project Requirements Create a saloon where 4 random players are playing poker. Relevant Skills and Experience C++ Programming Proposed Milestones $35 USD - Initial milestone
$35 USD in 1 day
5.0 (556 reviews)
7.0
7.0
User Avatar
Bid Summary I read your description and will do that task easily. Project Requirements I am professional C++ developer and have developed many applications. Relevant Skills and Experience Contact me if you are looking for quality work. Thank you. Proposed Milestones $35 USD - C++ task
$35 USD in 1 day
5.0 (27 reviews)
4.5
4.5
User Avatar
I'm expert in C++.My 200+ perfect reviews speak for my dedication and skill.I am interested to develop your required project with C++. Please, inbox me for details ...
$25 USD in 1 day
5.0 (22 reviews)
4.1
4.1
User Avatar
Hello, My name is Achouri Issam. I have over three years experience in Software Engineering and i have a good Knowledge with Java, JavaEE,Android,IOS, Spring, Spring MVC, EJB,Struts2, Hibernate, JSP, Servlet , JPA, JSF, Primefaces, Webservices. I have a Big Knowledge,an excellent experience in reporting business intelligence (JaspeReport, Birt), and with a database design and managment. Also i work perfectly with Google maps API and social networks APIs(facebook, twetter, instagram). It is with pleasure that I make myself available to work with you. Looking forward to hearing from you
$18 USD in 1 day
5.0 (2 reviews)
1.9
1.9
User Avatar
Bid Summary I am a seasoned software developer with over 17 years of software design, development and management experience of advance commercial software applications running on Linux using C/C++. Project Requirements Design of C++ classes. Relevant Skills and Experience Extensive experience working with C++ object oriented programming Proposed Milestones $30 USD - Completion
$30 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Folsom, United States
0.0
0
Payment method verified
Member since Apr 24, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.