Tweak it from == 1 to <= 1 just in case
This commit is contained in:
parent
7b97beaeb1
commit
699c07f59e
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ export function determineDirection(board: any[], shipLocation: number) {
|
|||
};
|
||||
};
|
||||
};
|
||||
if (shipCount == 1) {
|
||||
if (shipCount <= 1) {
|
||||
return 1;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue