Commit Graph

280 Commits

Author SHA1 Message Date
Bas Antonius de Jong
622fba6bae Delete src/test/java/GlobalEventBusTest.java 2025-09-20 18:34:39 +02:00
lieght
a99e08f726 Added TcpServerTest 2025-09-20 18:32:34 +02:00
lieght
8ee378cf82 Added unittests for Player, changed imports for LocalTicTacToe.java 2025-09-20 18:17:03 +02:00
lieght
2feeb5cc71 Changed player into a class with getters. Added Unittests for GameBase.java 2025-09-20 18:09:39 +02:00
lieght
f378897769 Moved MinMaxTicTacToe.java to its own ai package. Added unittests for math classes. 2025-09-20 17:26:12 +02:00
lieght
804a803027 Added unittests for GlobalEventBus.java 2025-09-20 17:20:23 +02:00
lieght
16421c7163 Fixed bug in Logging.java, added unittests for Logging.java in LoggingTest.java 2025-09-20 17:15:22 +02:00
lieght
e4c1d2ef13 Added mockito dependency for unittests. Moved from Junit4 to Junit6rc3 2025-09-20 17:14:33 +02:00
lieght
d5b03976b7 Formatted code to follow google formatting guidelines using the Spotless formatter 2025-09-20 15:11:57 +02:00
lieght
323f401aad spotless formatter 2025-09-20 15:00:34 +02:00
Ticho Hidding
f620ccc489 Player vs AI working in the UI 2025-09-20 02:28:55 +02:00
lieght
651a57ef29 Removed server connection for local game 2025-09-19 21:23:39 +02:00
lieght
9e3ee76254 Added AI and made the options of adding those AI's actually work. 2025-09-19 19:17:52 +02:00
lieght
c901b35631 Docs 2025-09-19 17:46:56 +02:00
lieght
2d84dbfd72 currentPlayer 2025-09-19 17:41:06 +02:00
lieght
ba16f2e135 Local tic tac toe thread 2025-09-19 17:31:37 +02:00
lieght
1d90df4e86 Connection client simplified 2025-09-19 14:13:13 +02:00
lieght
c2b6aea71e MVP game client 2025-09-19 00:00:25 +02:00
Bas Antonius de Jong
cacf9a29e8 Update src/main/java/org/toop/game/tictactoe/TicTacToe.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-18 17:26:17 +02:00
Bas Antonius de Jong
756cc58b10 Update src/main/java/org/toop/game/tictactoe/TicTacToe.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-18 17:26:17 +02:00
76360f70e4 Typo in feedback 2025-09-18 17:26:17 +02:00
16a48568e2 Added feedback to clients 2025-09-18 17:26:17 +02:00
cead168a18 Stops running the gamethread when win or draw 2025-09-18 17:26:17 +02:00
f42831ea78 Update TicTacToe.java 2025-09-18 17:26:17 +02:00
355f0c157e Update TicTacToe.java 2025-09-18 17:26:17 +02:00
Bas de Jong
3c3248b0db Removed unimportant code. 2025-09-18 15:28:12 +02:00
Bas de Jong
99c83d1361 Fixed takeFromCommandQueue returning void 2025-09-18 15:27:34 +02:00
Bas de Jong
974403242f Fixed takeFromCommandQueue returning void 2025-09-18 15:27:31 +02:00
Bas de Jong
826886f617 Fixed takeFromCommandQueue returning void 2025-09-18 15:27:27 +02:00
Bas de Jong
5fc3bddca8 Added takefromcommandqueue methods, removed throws and made internal to function 2025-09-18 15:20:34 +02:00
michiel
a6e97c5070 new ai update that passes all unit tests and does see wins 2025-09-18 14:11:29 +02:00
Bas de Jong
5511192c2b Updated ui 2025-09-18 13:50:42 +02:00
Bas de Jong
8f9d6da0c9 Readded window instantiation 2025-09-18 13:39:57 +02:00
Bas Antonius de Jong
fd2b4d8c2e Merge pull request #27 from 2OOP/Ticho
Updated .gitignore, removed some .idea files from repository
2025-09-18 13:14:47 +02:00
Bas Antonius de Jong
9a2ebcef82 Update .gitignore 2025-09-18 13:13:57 +02:00
Bas Antonius de Jong
1d9fa115ed Delete .idea/workspace.xml 2025-09-18 13:13:03 +02:00
Bas de Jong
23f1b9ea71 Updated .gitignore, removed some .idea files from repository 2025-09-18 13:03:52 +02:00
Bas Antonius de Jong
a894f42650 Merge pull request #26 from 2OOP/Michiel
Merge michiel branche with ServerManager for updated, working UI.
2025-09-18 13:01:49 +02:00
Bas Antonius de Jong
963a51238e Merge branch 'ServerManager' into Michiel 2025-09-18 13:01:09 +02:00
Bas Antonius de Jong
97ea5e2130 Merge pull request #25 from 2OOP/Ticho
Merge Ticho with ServerManager for use of updated events and UI
2025-09-18 12:49:07 +02:00
Bas de Jong
74bd636239 Centered game selector window, small fixes. 2025-09-18 12:48:16 +02:00
michiel
3fde9f5a64 new unit tests + a small improvement to the ai where it didnt instantly block during unit tests 2025-09-18 12:46:16 +02:00
Bas de Jong
0f6f8baee7 ServerManager logging 2025-09-18 11:45:39 +02:00
michiel
f85e0e187a nog een kleine fix waarbij die depth van 8 gebruikte in plaats van game.movesleft 2025-09-18 10:46:24 +02:00
michiel
593ff2696c most likely fixed the ai; it atleast isnt making dumb moves anymore 2025-09-18 10:15:51 +02:00
Bas de Jong
0cc57f558d Added the ability to tune the logger 2025-09-17 23:40:55 +02:00
Bas de Jong
26590e1939 Logging docs 2025-09-17 23:17:06 +02:00
lieght
5eb6e8ea37 Added second player to initial form 2025-09-17 20:31:50 +02:00
lieght
032d388f4f Added creating setting up a server for the user when the form is filled in 2025-09-17 20:12:36 +02:00
lieght
395dc8c603 Merge branch 'Ticho' of github.com:2OOP/pism_ttt into Ticho
# Conflicts:
#	src/main/java/org/toop/Main.java
#	src/main/java/org/toop/eventbus/Events.java
#	src/main/java/org/toop/game/TTT.java
#	src/main/resources/log4j2.xml
2025-09-17 19:47:04 +02:00