Skip to content

User Interface

Tyler Barker edited this page Mar 17, 2017 · 9 revisions

Layout

Players of the game will be shown two opposing 10x10 grids on the left and the right of the screen. On the left will be the players grid with their randomly-placed battleships, and on the right the computer's grid with no ships visible.
Just above the two grids will be a header displaying the players names (i.e Player, Enemy), and a message box in the centre which will display messages "Hit!", "Miss!" and "You sank my {ship name}!".

Interaction

User interaction will be done entirely via mouse clicks on the opponents grid. If a player's grid coordinate doesn't hit a ship, that tile will be marked white for a miss and the message box will output accordingly. For selections resulting in a hit, the message box will output accordingly, and the tile will turn red.

Colour Scheme

Text used to display player names and output messages will be white.


The player boards will be blue.


blue


The general interface background will be black, with Battleships appearing on the Player board in grey.


black grey

Clone this wiki locally