From 699c07f59ef16fce6999541cc83bb63640eace79 Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Wed, 22 Jun 2022 00:38:23 -0600 Subject: [PATCH] Tweak it from == 1 to <= 1 just in case --- common/src/algorithms/movementDirection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/algorithms/movementDirection.ts b/common/src/algorithms/movementDirection.ts index 9348a82..5760c1f 100644 --- a/common/src/algorithms/movementDirection.ts +++ b/common/src/algorithms/movementDirection.ts @@ -55,7 +55,7 @@ export function determineDirection(board: any[], shipLocation: number) { }; }; }; - if (shipCount == 1) { + if (shipCount <= 1) { return 1; };