How conghung2302/caro works
Project type and purpose
• This is a Java-based networked multiplayer Caro (Gomoku) game with a standalone GUI client and a headless server.
• The client handles user interaction, rendering, AI, and voice chat. The server manages game rooms, matchmaking, persistence (MySQL), and voice-chat coordination (via Cling UPnP).
File structure
Top-level:
• Caro – Client — NetBeans project containing:
– src/… — packages AIGame (game engine + Minimax AI), Core (network protocol, JSON via Gson), Interface & Swing (UI forms), Assets (images/sounds), DropIcon/sweet_alert/sample (UI widgets)
– test/VoiceChat — standalone voice-chat client/server tests
– build.xml, nbproject/… — build definitions
– dist/… — packaged jars and dependency libs (TimingFramework, Gson, MigLayout)
• Caro – Server — NetBeans project containing:
– src/Core — ServerManager, Room, User, DBConnect (MySQL), VoiceChatServer
– src/Interface — Swing-based server control panel
– src/VoiceCOre — low-level voice chat using Cling (UPnP)
– lib/… — Cling jars, MySQL connector, TimingFramework
– build.xml, nbproject/…
Other files:
• carogame.sql, tictactoe.sql — schema scripts
• README.md — quick start: run server.jar then client.jar
README
• Confirms a simple deploy: unzip, cd to ./dist, launch server.jar, then client.jar, then PLAY.
Detail without overthinking
• Every package as a sub-component under its main module.
• External JAR dependencies only if they affect cross-component data flow (e.g., Gson, Cling).
• Reader can trace: “When user clicks → which class handles → which JSON message → which server class → which DB table.”