Find Jobs
Hire Freelancers

coding a boston dice game in C++

$10-30 USD

In Progress
Posted over 7 years ago

$10-30 USD

Paid on delivery
This is a "bar betting game" arranged from a traditional "Going to Boston" version. You will play with a computer. At the beginning, you and computer have the initial allowance of $1,000 each, and the game will continue until one becomes broke... On one turn, you and computer roll three dice and show the two numbers of them but one die number being hidden. Based on the odds you think of, you will bet $1 to $10. The outcome is called "Big Fish!" if the three numbers are identical such as 1-1-1 and 2-2-2. If not Big Fish, set aside the highest die and re-roll the other two. Keep the highest die of the two and re-roll the last. The total of all three dice is scored, and the bet amount multiplied by the difference of yours and computer's will be added/subtracted to each allowance. If Big Fish, the bet amount will be multiplied by 50 and added/subtracted. See the below example of a game session: [Round 1] You rolled (2, 2, ?), machine rolled (4, 6, ?)... How much are you going to bet: 10 You had (2, 2, 2) ... Big Fish!!! Machine had (4, 6, 3) -> Machine rolled (2 ,4) and then rolled (5) -> Machine scored 15. You won :) You have $1500, machine has $500... [Round 2] You rolled (2, 5, ?), machine rolled (5, 1, ?)... How much are you going to bet: 12 - your bet must between $1 and $10, type again: 4 You had (2, 5, 6)-> You rolled (3 ,5) and then rolled (3) -> You scored 14. Machine had (5, 1, 1)-> Machine rolled (4 ,4) and then rolled (3) -> Machine scored 12. You won :) You have $1508, machine has $492... [Round 3] You rolled (2, 1, ?), machine rolled (6, 1, ?)... How much are you going to bet: 2 You had (2, 1, 1)-> You rolled (5 ,6) and then rolled (4) -> You scored 12. Machine had (6, 1, 6)-> Machine rolled (6 ,5) and then rolled (3) -> Machine scored 15. You lost :( You have $1502, machine has $498... [Round 4] You rolled (2, 1, ?), machine rolled (6, 3, ?)... How much are you going to bet: 4 You had (2, 1, 4)-> You rolled (5 ,4) and then rolled (4) -> You scored 13. Machine had (6, 3, 3)-> Machine rolled (6 ,2) and then rolled (6) -> Machine scored 18. You lost :( You have $1482, machine has $518... [Round 5] You rolled (3, 1, ?), machine rolled (1, 5, ?)... How much are you going to bet: 5 You had (3, 1, 1)-> You rolled (4 ,6) and then rolled (3) -> You scored 12. Machine had (1, 5, 4)-> Machine rolled (5 ,4) and then rolled (4) -> Machine scored 14. You lost :( You have $1472, machine has $528... [Round 6] You rolled (6, 6, ?), machine rolled (4, 3, ?)... How much are you going to bet: 10 You had (6, 6, 3)-> You rolled (3 ,5) and then rolled (2) -> You scored 13. Machine had (4, 3, 6)-> Machine rolled (5 ,2) and then rolled (5) -> Machine scored 16. You lost :( You have $1442, machine has $558... [Round 7] You rolled (1, 1, ?), machine rolled (6, 3, ?)... How much are you going to bet: 10 You had (1, 1, 6)-> You rolled (2 ,1) and then rolled (1) -> You scored 9. Machine had (6, 3, 4)-> Machine rolled (4 ,5) and then rolled (2) -> Machine scored 13. You lost :( You have $1402, machine has $598...
Project ID: 11528317

About the project

6 proposals
Remote project
Active 8 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
6 freelancers are bidding on average $27 USD for this job
User Avatar
Hello Sir/Mam NovaSofts Inc. is the leading IT Company of Islamabad Pakistan. We have 9+ years of experience and strong knowledge about programming languages Java C++ C C# Android So you don't worry about third party client. We are very experienced and assure you that we’ll provide quality work. The project bid is negotiable and P.M for sample work. Thanks
$30 USD in 1 day
4.9 (338 reviews)
7.5
7.5
User Avatar
need an A grade?contact me.
$40 USD in 1 day
4.9 (94 reviews)
6.5
6.5
User Avatar
Done in a couple of hours if there are no other constraints or requirements. I am a CS major from UC Davis.
$30 USD in 1 day
5.0 (2 reviews)
2.4
2.4
User Avatar
Dear Sir, I am interested in this project and I think that this game is pretty nice. Your specifications are clear and the needed algorithm too. My bis is related to provide C++ source code, compilable as you desire under Linux , DevC++ or Visual Studio (at your choice). Please note: just a console game, no GUI provided. You pay only if satisfied. Delivery within 48 hours. Best Regards,
$30 USD in 2 days
5.0 (1 review)
0.4
0.4
User Avatar
I will write this as a console application for windows. The application will be written using american variable names. What happens if both user and computer get BigFish?
$15 USD in 1 day
0.0 (0 reviews)
0.3
0.3

About the client

Flag of UNITED STATES
SUNNYSIDE, United States
5.0
6
Payment method verified
Member since Sep 14, 2016

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)
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.