Click here to Skip to main content
15,901,035 members

Comments by OnLearn (Top 9 by date)

OnLearn 28-Jan-17 13:52pm View    
the code is more than 500 rows long so I don't think that you want to study it
OnLearn 28-Jan-17 12:23pm View    
I haven't done it like yourField = opponentsField;
I have a third array called field[][].
Then I built yourField like this: yourField[][]=Arrays.copyOf(field[][],10);
I gave field other values and built opponentsField equally.

If I initialize the array with copyOf() it isn't a pointer to an array, is it?
OnLearn 28-Jan-17 12:23pm View    
I haven't done it like yourField = opponentsField;
I have a third array called field[][].
Then I built yourField like this: yourField[][]=Arrays.copyOf(field[][],10);
I gave field other values and built opponentsField equally.

If I initialize the array with copyOf() it isn't a pointer to an array, is it?
OnLearn 28-Jan-17 12:23pm View    
I haven't done it like yourField = opponentsField;
I have a third array called field[][].
Then I built yourField like this: yourField[][]=Arrays.copyOf(field[][],10);
I gave field other values and built opponentsField equally.

If I initialize the array with copyOf() it isn't a pointer to an array, is it?
OnLearn 14-Jan-17 8:30am View    
In the beginning I draw a table with 10 rows and 10 columns and if the user clicks in one of those cells, in the cell a 'x' shoud appear.
What is the name of the submethod which let me know if the user has clicked?