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; };