+ 3

no one can do this

The purpose of this assignment is to verify that you understand variables, random variables, conditional statements (if) and loops. In your implementation do not roll the dice (generate random values) before you need them. If someone got a "Big Fish" that player only needs three random numbers for a round. Also do not use arrays, vector or any other container class. For determining the maximum die value, I want you to use multiple "if" statements. Do not use the max function. Before you use the "wheel", I want to make sure you can invent it. You can write your own little functions. But I do not expect you to do so until I cover functions in lecture. 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 y

6th Oct 2017, 2:19 AM
Eliezer Liranzo
Eliezer Liranzo - avatar
9 Respostas
+ 9
6th Oct 2017, 8:23 AM
Zephyr Koo
Zephyr Koo - avatar
+ 9
You're welcome @Nomeh! 😄 I used the web version for setting up challenges previously that's why I know it~
6th Oct 2017, 12:24 PM
Zephyr Koo
Zephyr Koo - avatar
+ 8
This smells very strongly of homework.
6th Oct 2017, 2:29 AM
LunarCoffee
LunarCoffee - avatar
+ 8
wow! how on earth did you type more than 512 letters on the description pane?
6th Oct 2017, 6:16 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 7
Thanks @Zephyr, now I know he used the web
6th Oct 2017, 9:19 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 4
I mean, I really can't C++ very well, so... hm.
6th Oct 2017, 2:34 AM
LunarCoffee
LunarCoffee - avatar
+ 4
Did he hack or something?
6th Oct 2017, 8:35 AM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 1
it is
6th Oct 2017, 2:34 AM
Eliezer Liranzo
Eliezer Liranzo - avatar
+ 1
can't C ++ very well, ☝☝😂😂😂😂😂😂😂
6th Oct 2017, 3:38 AM
Morpheus
Morpheus - avatar