Object-Oriented (OO) Design
Design a two-player chess game using the following process:
- Define context and modes of use
- Illustrate the operational context using a context model
- Illustrate the top-level functions using a use case diagram
- Design the system architecture
- Recommend an appropriate software architecture
- Identify the principal objects
- Model an object-oriented design using a class diagram
- Develop design models
- Model interactions among objects using a sequence diagram
- Model event-driven behavior using a state machine diagram
- Specify object interfaces
For the principal objects, include a ChessBoard
class and an abstract
ChessPiece
class with subclasses for each type of chess piece.
As part of the design model, create a UML sequence diagram for how messages (i.e., method calls) flow between classes and a UML state machine diagram for how moves are specified with one click to pick up a piece and one to drop it.