I have inquiry on the coding of the game as I am trying to fix the issues of the following for our university assignment:
We couldn't find the condition where the time could reset when a new game is added. resetTimer() seem to not have any usage. We tried to set the lclock value to 0 whenever a newGame() function is called, but still it would not affect the clock value. Which make us think, if is use in the main.java to set the clock, why it wouldn't work if we use it in main when a new game is called.
Next, the end game condition. We couldn't find the end game condition or even the line that print check mate, without identifying that, we could fix the issue where if one of the time of a player reach 0, we have to end the game.
I hope to get a respond as we really need you admins help. Thank you. If we are able to fix it, we don't mind contributing it to github.