Functional Issues - ThindAmrit17/Battleship GitHub Wiki

Bugs/Errors

Upon testing of the original Battleship application in VB, several functional issues were found.

Issue #1

Mouse position not interpreted properly when interacting with gameboard during initial setup phase. Game interprets mouse position as being 3 grid tiles further up than it is. This issue cascades into problems with using the other UI elements in the setup phase, i.e. when the rotate/randomise/start buttons above the grid are clicked, the grid will try to place a ship at where it perceives the mouse position to be.

Issue #2

Vertical placement button during initial setup phase cannot be pressed. This at the moment can be circumvented by using the up-arrow key instead.

Issue #3

Although a highscore.txt file exists under resources/player high score but high-scores are not saved in this file.

Issue #4

Ships disappear when using the moving arrows, it seems that the movement are not allowed, or they provide the wrong values, and it simply takes the ship off the board, requiring the user to place it back again.

Issue #5

When pressing the ‘play’ option, whatever ship is currently being selected will disappear from the screen, removing the ‘play’ button and leaving the error message “Ship can’t fit on the board.”