javadoc
for Design DocumentationPlayer
Board
Game piece
Menu
Score board
Board
stores the current positions of game pieces Board
shows the current state of the gameBoard
is used by both players to make their movesBoard
:Board
or Player
? C
depends on D
: Method of C
manipulates objects of D
Player
depends on Board
C
doesn't use D
, then C
can be developed without knowing about D
void print() // prints to System.outwith
String getText() // can print anywhere
System
, PrintStream