Working on a project for a class. The project is to make a game, that starts the user with $10.00 . There are 6 options that are to be prompted.. even, odd, fibonacci, double, exact, and done. These options need to be prompted before each select, as well as the new total after the roll of dice happen. If done is chosen, the game ends.. There are different amounts attached to each bet. The game also ends if user reaches $0.00. The game itself is calculated by rolling 2 dices, and adding the numbers together.
So, my issues: I don't know how to attach the choices, such as even - odd - double - exact with anything. I am just staring at these words wondering what I need to make them. I understand how the whole program works, its just the actual programming itself and using the correct wording etc...
So far I have the dice roll working, and have a column of println's setup to display the choices and the fixed bet amounts. I was even thinking about, if possible, to make some dialog box that has these choices and fixed amounts, with the option to click on one, but I am still in the same boat. I dont know how to, once the user decides, to attach whatever they chose to an actual code to run something.
For ex: if someone chose even, I would more than likely use the sum of the two dice, take the remainder, set it to 0, return true with adding $.50. But if false, than subtract the $.50.
I am a true noob at java code, so any help would be appreciated..
Im not looking for anyone to do the project, just some advice or tips that may help..
if any more info is needed I can pm them.
This post was edited by Malexir on Feb 11 2013 12:12pm