Hi, I'm currently in a the process of making a connect4 game, but what is highly frustrating is that im trying to write a loop that takes i from 0 up to the NUM_COLUMNS. and then make the new object called Connect4Column. When I compile and run this it gives me <identifier> errors and a return type error under the Connect4Model. I don't why this is. I've done much research into these errors and still I dont understan. If there are any way as to getting around this it would be much grateful
Kind Regards.
public class Connect4Column
{
Connect4Column [] columns;
private int NUM_COLUMNS;
private int NUM_ROWS;
private int playerToGoNext = Connect4Column.RED_COUNTER;
Connect4Model(int numCols, int numRows); constructor
{
columns = new Connect4Column[NUM_COLUMNS]; // Loop
for (int i = 0;i < NUM_COLUMNS;i++)
{
columns[i] = new Connect4Column(NUM_ROWS); //New object
}
}
int getNumCols()
{
return 0;
}
int getNumRows()
{
return 0;
}
int getNextPlayer()
{
return 0;
}
boolean go(int thisColumn)
{
return false;
}
int getCounter(thisColumn, thisRow)
{
return 0;
}
int getNumCounters(thisColumn)
{
return 0;
}
}