Provide a fix for the failing test-case

This commit is contained in:
Oliver Akins 2022-06-29 22:22:01 -06:00
parent 32119625b7
commit dc510e00b0
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -64,7 +64,7 @@ export function determineDirection(board: any[], shipLocation: number) {
while (true) { while (true) {
// The left side of the board is out of range, nearest ship is always // The left side of the board is out of range, nearest ship is always
// right // right
if (shipLocation - delta <= 0) { if (shipLocation - delta < 0) {
return 1; return 1;
} }