Associate
Hi Guys,
I've almost completed my assignment but there's one problem, I can't get a simple score system set up.
All src files are @ http://www.sinvise.net/src
My problem is pointing to the Dots.java and the commented out code:
I am trying to get the score set and then output it onto the label, but my problem is that whenever it does this it works for both players where I just want it for player 1, on the first block and if it isn't player one then do player 2.
Can someone give me a bit of guidance on this?
Thanks.
I've almost completed my assignment but there's one problem, I can't get a simple score system set up.
All src files are @ http://www.sinvise.net/src
My problem is pointing to the Dots.java and the commented out code:
Code:
/*if(status[i][j] == 1)
{
dlg.setScore(dlg.getScore()+1);
p1Score.setText(Integer.toString(dlg.getScore()));
}
else
{
dlg.setScore2(dlg.getScore2()+1);
p2Score.setText(Integer.toString(dlg.getScore2()));
}*/
I am trying to get the score set and then output it onto the label, but my problem is that whenever it does this it works for both players where I just want it for player 1, on the first block and if it isn't player one then do player 2.
Can someone give me a bit of guidance on this?
Thanks.