@ -22,8 +22,11 @@ public class cell extends JButton {
}
protected void OnMouseClick() {
if(value == 0) {
value = ttt.player;
ttt.endTurn();
setEnabled(false);
switch (value) {
case 1: setBackground(new Color(255,0,0));
break;
@ -33,6 +36,7 @@ public class cell extends JButton {
@ -5,6 +5,4 @@ import org.junit.jupiter.api.Test;
class TicTacToeGameTest {