Find Jobs
Hire Freelancers

Characters of the West C++ project

$10-30 USD

İptal edildi
İlan edilme: neredeyse 7 yıl önce

$10-30 USD

Teslimde ödenir
I need this project done as soon as possible. I have included code so you don't have to start from the beginning. The program must meet all constraints and must have 3 bonus features. Bonus features include multiple input validations. 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() The code must run on a Ubuntu 16.04 linux system. It needs to compile with the following g++ -std=c++11 -g -Wall <[login to view URL]>
Proje No: 14031084

Proje hakkında

10 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 7 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
10 freelancers are bidding on average $39 USD for this job
Kullanıcı Avatarı
Hi there, I went through the requirements and I would like to do this project if given the opportunity. Let me know if you are interested. Thanks.
$30 USD 1 gün içinde
5,0 (591 değerlendirme)
7,1
7,1
Kullanıcı Avatarı
Dear Sir. I'm very interested in your job post involving these skills. I have consistently delivered projects on time and under budget, which has earned us many positive ratings, as you'll see in work history. I believe that my skills would be ideal for your project. Regards.
$100 USD 1 gün içinde
5,0 (11 değerlendirme)
6,9
6,9
Kullanıcı Avatarı
Hello. How are you today. I have read and understood the project. I have strong knowledge in Data structures and Algorithms. And I'm expert in Java ,C/C++,C#, Python ,PHP etc. I'm interested this project. So, firstly I want to discuss with you about this project. Then I'll be happy. I wait for your good reply. Thanks.
$25 USD 1 gün içinde
4,9 (97 değerlendirme)
5,9
5,9
Kullanıcı Avatarı
Hi There, I have more than 10 years of experience in C++ and if you want an elegant solution then I am the best choice for you. Some of my C++ programs are serving to more than 10 Million people world wide. Give me a chance and you wouldn't regret it. Regards, Sneha
$45 USD 1 gün içinde
4,9 (3 değerlendirme)
2,8
2,8
Kullanıcı Avatarı
A proposal has not yet been provided
$25 USD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
A proposal has not yet been provided
$30 USD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   UNITED STATES bayrağı
Folsom, United States
0,0
0
Ödeme yöntemi onaylandı
Nis 24, 2017 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.