How prmr/designbook works
This repository is an educational companion to *Introduction to Software Design with Java*, not a single runtime application. Its main user workflow is for a learner to consult the book’s commented code samples, organized by chapter and edition; selected exercise solutions are a separate resource. The README documents these repository-level offerings. The supplied source excerpts show specific deck, card, observer, command, and strategy examples, but do not establish calls between most chapter samples, so the graph avoids implying a cross-chapter execution flow.
Main entry points: CommandClient.java Command client · StrategyClient.java Strategy client · code-e1 First edition samples · code-e2 Second edition samples
Components 16
Book editions
- First edition samples
code-e1 - Second edition samples
code-e2 - Third edition samples
code-e3
Sample components
- Deck and shuffler
code-e1/e1/chapter4/Deck.java - Flyweight cards
code-e1/e1/chapter8/Card.java - Card rank
code-e1/e1/chapter8/Rank.java - Card suit
code-e1/e1/chapter8/Suit.java - Card inventory
code-e1/e1/chapter8/Inventory.java - Visitor examples
code-e1/e1/chapter8/LuckyNumber.java - Card selection
code-e1/e1/chapter9/CardSelection.java - Deck commands
code-e1/e1/chapter9/DeckCommand.java - Command client
code-e1/e1/chapter9/CommandClient.java - Strategy client
code-e1/e1/chapter9/StrategyClient.java
Exercise solutions
- Observable deck examples
solutions-code/chapter8/ObservableDeck1.java - Movie solutions
solutions-code/chapter9/Movies.java
Other components
- Learner
Connections 9
- Learner → First edition samples: consults
README.md - Learner → Second edition samples: consults
README.md - Learner → Third edition samples: consults
README.md - Learner → Observable deck examples: studies solutions
README.md - Learner → Movie solutions: studies solutions
README.md - Command client → Deck and shuffler: uses
- Command client → Flyweight cards: compares decks
- Command client → Deck commands: creates
code-e1/e1/chapter9/CommandClient.java - Strategy client → Card selection: selects strategy
code-e1/e1/chapter9/StrategyClient.java