Every 40th cycle, the time counter variable decrements by 1, the clock is updated with the new time, the counter variable is reset otherwise the counter increases by 1
I am not entirely sure how to write my code to make this happen, so far I have
private int timeCounter; // counts the time backward from 15. Represents the amt of time player has to clear the board
private int counter; // counts the iterations of the act method.
public void timer(){
int counter = 0
int i = 0;
int timeCounter = 15;
while (i == 40)
timeCounter--;
updateClock(timeCounter);
timeCounter = 0;
}
Can someone please help?

