u/seidoken - 11 Archived Voat Posts in v/programming
u/seidoken
  • home
  • search

u/seidoken

1 post · 10 comments · 11 total

Active in: v/programming (11)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: I have a problem with some Java code

Thanks for the advice I'll keep that in mind for future projects. The assignment was to practice calling premade classes I didn't think to include the die.java when I posted my code. All the randomization happens there when the roll method is called.

0 29 Oct 2018 13:04 u/seidoken in v/programming
Comment on: I have a problem with some Java code

Thanks for the help, but I'm still curious as to why my code was failing.

0 29 Oct 2018 03:09 u/seidoken in v/programming
Comment on: I have a problem with some Java code

This is the complete code for the program, its a dice game called bunco where you gain points by dice rolls matching the round number, throwing three matching numbers, and throwing three matching numbers that match the round number. I added the extra x== z because the match 3 will occasionally give a + 5 even without anything matching but it still continues to do that.

Here is a link to the full code.

0 26 Oct 2018 22:30 u/seidoken in v/programming
Comment on: I have a problem with some Java code

I'll post the complete code.

0 26 Oct 2018 22:17 u/seidoken in v/programming
Comment on: I have a problem with some Java code

I'm stuck dealing with work stuff at the moment, some of my co-workers are computer science majors and I'll run it by them once we get settled down. I'll post whatever we find out.

0 26 Oct 2018 00:05 u/seidoken in v/programming
Comment on: I have a problem with some Java code

This is the code preceding the else if, I don't see how it would effect i

  for (int counter=1; counter>0;){
     die1.roll();
     die2.roll();
     die3.roll();
     int x = die1.getFaceValue();
     int y = die2.getFaceValue();
     int z = die3.getFaceValue();
     if (x == round6 && y == round6 && z== round6)
     {
        point6 = point6 + 21;
        counter--;
     }
0 24 Oct 2018 10:29 u/seidoken in v/programming
Comment on: I have a problem with some Java code

They are all declared ints, this is the only position that adds a 5 to the value, other positions either add 1 or 21.

0 24 Oct 2018 10:29 u/seidoken in v/programming
Comment on: I have a problem with some Java code

x, y, and z are all integers I added the x==z because it was failing occasionally.

0 24 Oct 2018 10:15 u/seidoken in v/programming
Comment on: I have a problem with some Java code

I'm comparing the values of integers.

0 24 Oct 2018 10:14 u/seidoken in v/programming
Comment on: I have a problem with some Java code

They are simple integers.

0 24 Oct 2018 10:13 u/seidoken in v/programming
I have a problem with some Java code
1 0 comments 24 Oct 2018 00:10 u/seidoken (self.programming) in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.