Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About ChaosDecides

  • Rank
  1. I went through and indented everything but I'm still not seeing the problem. I cut and pasted it from eclipse and it messed up the indentation. The original looks a lot better. I added the output for percentage and it works also. Looks like a case of hiding in plain site. My arch nemesis.
  2. Thanks for pointing that out! Fixed. The output part at the end is where I think the issue is happening. Basically once the while statement is no longer true I need the output. I don't know if the loop is checking that last if statement on each pass through. When I just do the come out roll and either win or crap out it works fine. I put in a print function for each line to see that numbers were indeed being generated. However some results just didn't look right. I'd get all 7's once followed by all 11's, then I'd have several in a row with a pretty wide range of rolls.
  3. I'm currently working on a basic craps simulator that needs to ouput the total wins and losses based on x number of interations, as well as output a win percentage. I haven't added the percentage part yet. I'm running it in eclipse and sometimes I'll get the output I want and other times I'll get no output at all. This is the code I've written so far: public class craps { public static void main(String[] args) { int dieOne = (int)(Math.random()* 6) + 1; int dieTwo = (int)(Math.random()* 6) + 1; int roll = dieOne + dieTwo; int winCount = 0; int
  4. I'm having a hard time dealing with footnotes as well as figuring out how to apply a unit and a source attribute to the table I've created. I need to take the data from the XML file and convert it to HTML to duplicate the html file I've attached. The unit attribute is applied to the area column in the table and the source attribute is an image that is applied to the map table. Since I can't upload the XSL file for some reason, I'll put the code in the post. I've looked through the HTML code to try and get a few clues, but I'm completely stumped. I'll also bold a section that stoppe
  • Create New...