-
Notifications
You must be signed in to change notification settings - Fork 3
ScanAt User Story
As a creator, I want to have assign players scan function to scan for enemy's ships for specific area except Battle ship and Submarine, so the game can contain more diversity for playing. Conversation: When the player decides specific row and column and click on the scan button, the scanAt function would be called. Compare the surrounding coordinates with the input coordinate five times (mid, top, down, left, and right) and record scannable ships condition on surrounding coordinate in list. Finally, return value and show the result on the screen. Confirm: Check five direction from the user input, mid, top, down, left, and right positions in the range of the table. Similar as fireAt function, confirm that if the coordinate includes scannable ships with hits or misses.