diff --git a/ai-client/src/main/java/com/lona/tictactoe/client/Main.java b/ai-client/src/main/java/com/lona/tictactoe/client/Main.java index 134f326..bff54f7 100644 --- a/ai-client/src/main/java/com/lona/tictactoe/client/Main.java +++ b/ai-client/src/main/java/com/lona/tictactoe/client/Main.java @@ -158,7 +158,7 @@ public class Main extends JFrame { // AI Configuration private static final String API_KEY = "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"; - private static final String MODEL = "qwen/qwen3-4b:free"; + private static final String MODEL = "arcee-ai/trinity-large-preview:free"; private char[] boardState = new char[9]; // Keep track of board state private void connectToServer() { @@ -248,15 +248,25 @@ public class Main extends JFrame { case "WIN": String winner = msg.substring(4); statusLabel.setText("Winner: " + winner); - // Auto RESTART if AI loses? Or wait for user? Let's just create a dialog but - // maybe auto-accept if we want seamless play? No, user requested seamless - // winning. - // Let's just wait for user to restart. - JOptionPane.showMessageDialog(this, "Winner: " + winner); + // Auto RESTART after 3 seconds + new Thread(() -> { + try { + Thread.sleep(3000); + } catch (InterruptedException e) { + } + send("RESTART"); + }).start(); break; case "DRAW": statusLabel.setText("Draw!"); - JOptionPane.showMessageDialog(this, "Draw!"); + // Auto RESTART after 3 seconds + new Thread(() -> { + try { + Thread.sleep(3000); + } catch (InterruptedException e) { + } + send("RESTART"); + }).start(); break; case "OPPONENT_LEFT": JOptionPane.showMessageDialog(this, "Opponent left the game."); diff --git a/ai-client/target/ai-client-1.0-SNAPSHOT.jar b/ai-client/target/ai-client-1.0-SNAPSHOT.jar deleted file mode 100644 index 82a64aa..0000000 Binary files a/ai-client/target/ai-client-1.0-SNAPSHOT.jar and /dev/null differ diff --git a/ai-client/target/classes/com/lona/tictactoe/client/Main.class b/ai-client/target/classes/com/lona/tictactoe/client/Main.class deleted file mode 100644 index 466a4f8..0000000 Binary files a/ai-client/target/classes/com/lona/tictactoe/client/Main.class and /dev/null differ diff --git a/ai-client/target/maven-archiver/pom.properties b/ai-client/target/maven-archiver/pom.properties deleted file mode 100644 index 6602b69..0000000 --- a/ai-client/target/maven-archiver/pom.properties +++ /dev/null @@ -1,5 +0,0 @@ -#Generated by Maven -#Tue Feb 10 14:46:43 CET 2026 -artifactId=ai-client -groupId=com.lona.tictactoe -version=1.0-SNAPSHOT diff --git a/ai-client/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/ai-client/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst deleted file mode 100644 index 0128c4a..0000000 --- a/ai-client/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ /dev/null @@ -1 +0,0 @@ -com/lona/tictactoe/client/Main.class diff --git a/ai-client/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/ai-client/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst deleted file mode 100644 index 7812269..0000000 --- a/ai-client/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ /dev/null @@ -1 +0,0 @@ -/home/collin/tictactoe/ai-client/src/main/java/com/lona/tictactoe/client/Main.java diff --git a/ai-client/target/original-ai-client-1.0-SNAPSHOT.jar b/ai-client/target/original-ai-client-1.0-SNAPSHOT.jar deleted file mode 100644 index 918bbda..0000000 Binary files a/ai-client/target/original-ai-client-1.0-SNAPSHOT.jar and /dev/null differ diff --git a/web-client/src/main/resources/templates/index.html b/web-client/src/main/resources/templates/index.html index 0fd135c..c81c70f 100644 --- a/web-client/src/main/resources/templates/index.html +++ b/web-client/src/main/resources/templates/index.html @@ -60,7 +60,7 @@
diff --git a/web-client/target/classes/templates/index.html b/web-client/target/classes/templates/index.html index 0fd135c..c81c70f 100644 --- a/web-client/target/classes/templates/index.html +++ b/web-client/target/classes/templates/index.html @@ -60,7 +60,7 @@ diff --git a/web-client/target/web-client-1.0-SNAPSHOT.jar b/web-client/target/web-client-1.0-SNAPSHOT.jar index 307155a..2dbf650 100644 Binary files a/web-client/target/web-client-1.0-SNAPSHOT.jar and b/web-client/target/web-client-1.0-SNAPSHOT.jar differ diff --git a/web-client/target/web-client-1.0-SNAPSHOT.jar.original b/web-client/target/web-client-1.0-SNAPSHOT.jar.original index 1c2126c..6010ee6 100644 Binary files a/web-client/target/web-client-1.0-SNAPSHOT.jar.original and b/web-client/target/web-client-1.0-SNAPSHOT.jar.original differ