How kurbz-codes/prototype-application-1st-java-game works
A small Java Swing noughts-and-crosses game. Main creates the game controller, which coordinates player turns, move validation, win/draw handling, and resets through the board UI. The board’s buttons dispatch moves and reset requests back to the controller. The source shows these runtime interactions; the README provides no further feature or architecture detail.
Main entry points: NoughtsAndCrosses.java Game controller · Board.java Game board · Player.java Player state · Main.java Main
Components 5
Application entry
- Main
src/main/Main.java
Game logic
- Game controller
src/main/NoughtsAndCrosses.java - Player state
src/main/Player.java
Swing interface
- Game board
src/main/Board.java
Other components
- Player
Connections 8
- Main → Game controller: creates
src/main/Main.java - Game controller → Game board: creates
src/main/NoughtsAndCrosses.java - Game controller → Player state: creates
src/main/NoughtsAndCrosses.java - Player → Game board: clicks cells
src/main/Board.java - Game board → Game controller: dispatches moves
src/main/Board.java - Game board → Game controller: dispatches reset
src/main/Board.java - Game controller → Game board: checks and updates
src/main/NoughtsAndCrosses.java - Game controller → Player state: reads symbols
src/main/NoughtsAndCrosses.java