Project 4 UML Diagrams
Listed here are the UML diagrams of the classes GameBoard and Screen. Included are
all the properties of the two classes and the additional logical methods of each class.
Missing from the diagrams are methods you should know to the create, these are the
methods we create for every class solution.
GameBoard
-computerScreen: Screen
-userScreen: Screen
+checkForComputerWin(): boolean
+checkForUserWin(): boolean
+guessAtAComputerPosition(row: char, column: int): boolean
+guessAtAUserPosition(row: char, column: int): boolean
+printUserScreenGuessTable(): void
+printUserScreenShipTable(): void
Screen
–guessTable: char[][]
–hitTable: char[][]
–shipTable: char[][]
+Screen(rowLength: int, colLength: int)
+getGuessTablePosition(row: char, column: int): char
+getHitTablePosition(row: char, column: int): char
+getShipTablePosition(row: char, column: int): char
+markOnGuessTable(row: char, column: int, mark: char): void
+markOnHitTable(row: char, column: int, mark: char): void
+searchForWin(): boolean