Question: creating tic tac toe in java using gui whrn clicking on board invalid move ( int cOl = 0 ;col 3 ;col + + {

creating tic tac toe in java using gui whrn clicking on board invalid move
(int cOl=0;col3;col++
{
if grid [row][col]
{
if(clicked.getText()!="")
{
status.setText("Invalid Move");
break next;
}
else if(clicked.getText()=="" && isXTurn == tr
{
clicked.setText ("X");
clicked. setForeground(COlor.RED);
this. game [row][Col]=?'x';
}
else
{
clicked.setText("O");
clicked.setforeground(Color. BLUE);
this.game row
 creating tic tac toe in java using gui whrn clicking on

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!