Commit Graph

599 Commits

Author SHA1 Message Date
michiel
c27cb04709 hele kleine ui update 2025-09-22 12:44:27 +02:00
Ticho Hidding
f8bfbd46b5 Fixed race condition on startup of AI vs Player game 2025-09-22 12:04:34 +02:00
lieght
3fa0bae46a Networking moved to netty. Added a EventPublisher class for easy building of events. 2025-09-22 04:04:52 +02:00
Bas Antonius de Jong
efd485852c Merge pull request #36 from 2OOP/GameClient
Game client, Unittests, Formatting checks
2025-09-21 18:14:03 +02:00
lieght
e3606835ce Micro performance improvements 2025-09-21 18:03:43 +02:00
lieght
a4464cf890 Merge remote-tracking branch 'origin/GameClient' into GameClient 2025-09-21 17:57:03 +02:00
lieght
a53e6ab18a Temp disable for mvp 2025-09-21 17:56:41 +02:00
Bas Antonius de Jong
6c58fd63bc Update checks.yaml 2025-09-21 17:53:07 +02:00
Bas Antonius de Jong
66238080c8 Merge branch 'main' into GameClient 2025-09-21 17:47:00 +02:00
lieght
c5030be01a Github push formatting checks. 2025-09-21 17:44:25 +02:00
lieght
6ef4b44574 Formatting 2025-09-21 17:43:29 +02:00
lieght
2238c6e6c9 Fixed unittest 2025-09-21 17:10:34 +02:00
lieght
174c24d935 Renaming and formatting 2025-09-21 16:49:15 +02:00
lieght
6e35993dc2 Formatting 2025-09-21 05:47:38 +02:00
lieght
4221b91cfd Formatting 2025-09-21 05:30:51 +02:00
lieght
0926df1945 Reformatted tests 2025-09-20 23:04:40 +02:00
Ticho Hidding
cc7048da68 can now delete your save and start a new game 2025-09-20 22:41:56 +02:00
Ticho Hidding
f86a99acb6 Bugfix: can no longer overwrite move with the UI. Added colours to signal end state. 2025-09-20 21:30:37 +02:00
Bas Antonius de Jong
13411ed321 Delete src/test/java/ServerTest.java 2025-09-20 18:34:55 +02:00
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