coding a boston dice game in C++

В роботі Опубліковано %project.relative_time Оплачується при отриманні
В роботі Оплачується при отриманні

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

Кодування Java Програмування

ID Проекту: #11528317

Про проект

6 заявок(-ки) Дистанційний проект Остання активність 7 роки(ів) тому

6 фрілансерів(-и) готові виконати цю роботу у середньому за $27

NovaSofts

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 thir Більше

$30 USD за 1 день
(338 відгуків(и))
7.5
asadrana91

need an A grade?contact me.

$40 USD за 1 день
(94 відгуків(и))
6.5
anson418

Done in a couple of hours if there are no other constraints or requirements. I am a CS major from UC Davis.

$30 USD за 1 день
(2 відгуків(и))
2.4
bellamystraat

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 Більше

$30 USD за 2 дні(-в)
(1 відгук)
0.4
RLaumeyer

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 за 1 день
(0 відгуків(и))
0.3