I'm unsure about what to do with this section of code, errors are on lines 368 - 388, it's underlined in red using Eclipse and says, pointDie*JLabel1 (* is 1-5) as it does this on all lines through this section, cannot be resolved. I have a feeling it has something to do with the arrays and variables above, I need some help and any other issues you may come across. I know rollFives and moveDice is undefined at this time, and change player as this was going to be assigned for two players only but thought I'd try to let it decide 1-5 players. The scores are also suppose to populate in the JTextField on the right depending on how many players were selected....so lost. Any help will be appreciated.

BTW the other errors are at 463 in the else if , 479 with the turnpoints undefined

"cannot be resolved" means the compiler cannot find the variable name. Look closely at the variables names and how they are defined in the class, and how you are trying to use them (eg pointDie1JLabel != pointDie1JLabel1). The other errors (at least one of them) is due to the same issue - typically caused by not defining a variable or misspelling it relative to how it is defined.

March 9th, 2011, 09:30 PM

SnarkKnuckle

Re: Dice Game help and Arrays

Thanks that helped with a lot. Now if I can just get these variable, arrays and that text field on the right side to keep score that would be fantastic

March 9th, 2011, 09:47 PM

copeg

Re: Dice Game help and Arrays

Quote:

Originally Posted by SnarkKnuckle

Thanks that helped with a lot. Now if I can just get these variable, arrays and that text field on the right side to keep score that would be fantastic

Not sure what you mean...is this another question? What do you mean by 'right side'? If you are referring to a GUI arrangement? (Recommend posting an Short, Self Contained, Correct Example if so - the above is not compilable)

March 9th, 2011, 09:58 PM

SnarkKnuckle

Re: Dice Game help and Arrays

Yes, it's in a gui arrangement, theres a JTextField that populates on the right hand side that should pull from the arry of PLayers 1-5 depending on how many were selected after hitting the playJButton, but it doesn't pull this information. All this code runs directly from Eclipse all contained, only thing missing would be images for dice but that part is irrelevant for the textfield.