How mykedev-iw/totito works
Totito is a Java Swing tic-tac-toe game where a player competes against the computer. The single source file combines the interface, board and match state, computer strategy, and match history. The visible excerpts show minimax recursion, win detection, and saving history when a game ends. Because the README is empty and the source excerpts omit several interaction handlers, the graph keeps the implementation compact and avoids guessing at the full turn-dispatch flow.
Main entry points: Totito.java Computer strategy
Components 7
Game logic
- Board and match state
src/main/java/com/miguel/totito/Totito.java - Computer strategy
src/main/java/com/miguel/totito/Totito.java - Win detection
src/main/java/com/miguel/totito/Totito.java
Swing interface
- Totito app
src/main/java/com/miguel/totito/Totito.java
Match history
- History display
src/main/java/com/miguel/totito/Totito.java - History file
src/main/java/com/miguel/totito/Totito.java
Other components
- Player
Connections 4
- Totito app → Totito app: starts on EDT
src/main/java/com/miguel/totito/Totito.java - Computer strategy → Computer strategy: recurses minimax
src/main/java/com/miguel/totito/Totito.java - Computer strategy → Win detection: checks wins
src/main/java/com/miguel/totito/Totito.java - Board and match state → History file: saves results
src/main/java/com/miguel/totito/Totito.java