How ryank24-2026s/cs2114-project-3 works
Poker Night is a local multiplayer Texas Hold’em game. The console workflow takes player commands through the view and controller into the model, which runs hands from player setup and card dealing through betting turns, community cards, hand evaluation, and payouts; the view then presents state and results. Session statistics are part of the model/player state. The README documents this MVC wiring and notes BettingRound is not integrated. Source excerpts are partial, so the graph omits unshown call details rather than inferring them.
Main entry points: PokerModel.java Poker Model · ConsoleView.java Console View · Card.java Card · PokerController.java Poker Controller
Components 12
Console Interface
- Poker Controller
src/poker/PokerController.java - Console View
src/poker/ConsoleView.java - Card Renderer
src/poker/CardRenderer.java
Game Orchestration
- Poker Model
src/poker/PokerModel.java - Model Driver
src/poker/ModelDriver.java
Poker Domain
- Player
src/poker/Player.java - Deck
src/poker/Deck.java - Hand Evaluator
src/poker/HandEvaluator.java - Card
src/poker/Card.java
Game Utilities
- Turn Queue
src/poker/TurnQueue.java - Betting Round
src/poker/BettingRound.java
Other components
- Player User
Connections 14
- Player User → Console View: enters commands
README.md - Console View → Poker Controller: submits commands
src/poker/ConsoleView.java - Poker Controller → Poker Model: invokes game actions
src/poker/PokerController.java - Console View → Poker Model: reads game state
README.md - Console View → Card Renderer: formats cards
README.md - Model Driver → Poker Model: simulates hand
README.md - Poker Model → Player: manages players
src/poker/PokerModel.java - Poker Model → Deck: deals cards
src/poker/PokerModel.java - Poker Model → Turn Queue: manages turns
src/poker/PokerModel.java - Poker Model → Hand Evaluator: evaluates hands
src/poker/PokerModel.java - Deck → Card: creates cards
src/poker/Deck.java - Player → Card: holds hole cards
src/poker/Player.java - Hand Evaluator → Card: ranks cards
src/poker/HandEvaluator.java - Card Renderer → Card: renders card values
src/poker/CardRenderer.java