How htx296/niu-repo works
This repository’s documented product is a JavaFX Tetris game. The user opens the menu, starts a game, controls falling pieces with the keyboard, and sees board, score, and game-state updates; the game handles collisions, locking, line clears, scoring, level changes, and game over. The graph also preserves the separate task-list demonstration found in the tree and the game’s high-score and sound capabilities. Relationships reflect the README and source-index references; unsampled wiring is not inferred beyond those references.
Main entry points: GameController.java Game Controller · GameWindow.java Game Window · GamePanel.java Game Panel · Board.java Board Rules
Components 22
Entry and UI
- JavaFX Entry
sourcecode/oop/tetris/main/Main.java - Game Window
sourcecode/oop/tetris/view/GameWindow.java - Main Menu
sourcecode/oop/tetris/view/MainMenu.java - Game Panel
sourcecode/oop/tetris/view/GamePanel.java
Gameplay Control
- Keyboard Input
sourcecode/oop/tetris/controller/InputHandler.java - Game Controller
sourcecode/oop/tetris/controller/GameController.java
Game Domain
- Board Rules
sourcecode/oop/tetris/model/Board.java - Game State
sourcecode/oop/tetris/model/GameState.java - Falling Piece
sourcecode/oop/tetris/model/Tetromino.java - Piece Factory
sourcecode/oop/tetris/model/TetrominoFactory.java - Piece Shapes
sourcecode/oop/tetris/model/shapes - Scoring Strategy
sourcecode/oop/tetris/model/ScoringStrategy.java - Classic Scoring
sourcecode/oop/tetris/model/ClassicScoring.java
Game Services
- Game Events
sourcecode/oop/tetris/util/GameEventListener.java - High Score Manager
sourcecode/oop/tetris/util/ScoreManager.java - Bundled High Score
sourcecode/resources/data/highscore.txt - Sound Manager
sourcecode/oop/tetris/util/SoundManager.java - Font Loader
sourcecode/oop/tetris/util/FontManager.java
Task Demo
- Task Manager
ReleaseFlowDemonstration/TaskManager.java - Task Record
ReleaseFlowDemonstration/Task.java
Other components
- Player
- Task-list User
Connections 30
- JavaFX Entry → Game Window: opens
sourcecode/oop/tetris/main/Main.java - JavaFX Entry → Font Loader: loads fonts
sourcecode/oop/tetris/main/Main.java - Player → Main Menu: chooses game
- Game Window → Main Menu: loads screen
sourcecode/oop/tetris/view/GameWindow.java - Game Window → Game Panel: creates
sourcecode/oop/tetris/view/GameWindow.java - Game Window → Game Controller: creates
sourcecode/oop/tetris/view/GameWindow.java - Game Window → Board Rules: creates
sourcecode/oop/tetris/view/GameWindow.java - Game Window → Keyboard Input: registers
sourcecode/oop/tetris/view/GameWindow.java - Game Window → Sound Manager: plays music
sourcecode/oop/tetris/view/GameWindow.java - Main Menu → Game Window: starts game
sourcecode/oop/tetris/view/MainMenu.java - Player → Keyboard Input: presses keys
- Keyboard Input → Game Controller: dispatches actions
sourcecode/oop/tetris/controller/InputHandler.java - Game Controller → Board Rules: checks and updates
sourcecode/oop/tetris/controller/GameController.java - Game Controller → Game State: updates state
sourcecode/oop/tetris/controller/GameController.java - Game Controller → Piece Factory: creates pieces
sourcecode/oop/tetris/controller/GameController.java - Game Controller → Scoring Strategy: calculates score
sourcecode/oop/tetris/controller/GameController.java - Game Controller → High Score Manager: checks record
sourcecode/oop/tetris/controller/GameController.java - Game Controller → Sound Manager: plays effects
sourcecode/oop/tetris/controller/GameController.java - Game Controller → Game Events: notifies
sourcecode/oop/tetris/controller/GameController.java - Board Rules → Falling Piece: checks piece
sourcecode/oop/tetris/model/Board.java - Piece Factory → Falling Piece: returns piece
sourcecode/oop/tetris/model/TetrominoFactory.java - Piece Factory → Piece Shapes: selects shape
sourcecode/oop/tetris/model/TetrominoFactory.java - Classic Scoring → Scoring Strategy: implements
sourcecode/oop/tetris/model/ClassicScoring.java - Game Panel → Game Controller: renders game state
sourcecode/oop/tetris/view/GamePanel.java - Game Panel → Board Rules: reads grid
sourcecode/oop/tetris/view/GamePanel.java - Game Panel → Game Events: handles events
sourcecode/oop/tetris/view/GamePanel.java - Game Panel → Sound Manager: controls music
sourcecode/oop/tetris/view/GamePanel.java - High Score Manager → Bundled High Score: loads fallback
sourcecode/oop/tetris/util/ScoreManager.java - Task-list User → Task Manager: adds or views
ReleaseFlowDemonstration/TaskManager.java - Task Manager → Task Record: creates and reads
ReleaseFlowDemonstration/TaskManager.java