Hey Guys, Ive been having a bit of trouble with a program which rolls dice for the game risk. Ive been able to implement number of dice choice selection for both attacker and defender, and to get them to roll the results. The part I am trying to implement now is some form of variable which will take the attackers and defenders results compare them and decide the winning pairs of dice from each player. I beleive that I need a variable but looking at my code i've come to the conclusion that I may have wrote myself into a … +0 Write a program that simluates a game of dice. In this game, players take alternate turns rolling two dice. On each turn, they record the sum of the two dice and add this to their total. If a player rolls a doublet (both dice have the same value), then the player gets to roll again. However, if the doublet is “snake eyes” (both dice have a value of 1) or “box cars” (both dice have a value of 6), then the player loses their next turn instead. The first player to reach a total of 75 will win. For games … +0 Hi all, I have a very nasty issue here where SQL values are changing but I haven't been hacked because the changes are just too abnormal. People vote for their servers and every so often the top few servers values roll back. For example at 03:00 a server has 66 votes. Then at 04:00 it has 120, then at 05:00 i check and it has 88! This randomly started occuring last night and no code was changed. I thought just to be same I'll overwrite my sites code with a previous backup from a week back. That hasn't helped! I've … +0 The issue with my program is that it does not calculate how many times the specific value has occurred. I believe that I have everything in place, but I'm not sure to as why it wouldn't work. Any help and/or feedback is kindly appreciated. Thanks! Ok, so basically this program is supposed to do the following: Modify the die program so it rolls both dice 500 times. Count the number of times each value occurred. Your output should look like this: 2's = n times 3's = n times . . 12's = n times [code] class HowManyDoubles{ public static … +0 I was making a windows form project. in the project the user inputs the number of dice rolls he wants(2 dice will be rolled) and then i am suppose to give the number of times each number happened and the percent of times each number happened. The only problem is that i cant make the random number generator generator more than one roll using one name. [CODE]namespace Dice_Roll_assignment { public partial class diceRoll : Form { public diceRoll() { InitializeComponent(); } private void rollDice_Click(object sender, EventArgs e) { AcceptButton = rollDice; if (txtNumRolls.Text.Trim() == "") { MessageBox.Show("Must enter number of … +0 Hi all, Having another problem with a program. I thought i had this one pretty good, i was confident about it, but no luck. The problem was with initializing a variable, i try to add in to output what the variable is and it says it needs to might not have been initialized. Im not sure if the problem is that i tried to initialize it inside an if statement or if i have this overloaded and its too much for it to handle. I would much appreciate any help on this one. Here is my code: [CODE]import javax.swing.JOptionPane; public … +0

The End.