diff options
author | Julien Dessaux | 2023-04-28 22:01:55 +0200 |
---|---|---|
committer | Julien Dessaux | 2023-04-28 22:01:55 +0200 |
commit | e8933634dbd61975e58685fc8ecf8c9ceed94e2c (patch) | |
tree | 2fe0567dec873403777d3d3bd248342a4e870cd5 /static/index.js | |
parent | Updated dependencies (diff) | |
download | jeux-de-mots-e8933634dbd61975e58685fc8ecf8c9ceed94e2c.tar.gz jeux-de-mots-e8933634dbd61975e58685fc8ecf8c9ceed94e2c.tar.bz2 jeux-de-mots-e8933634dbd61975e58685fc8ecf8c9ceed94e2c.zip |
Fixed starting word could be one letter long
Diffstat (limited to '')
-rw-r--r-- | static/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/index.js b/static/index.js index b54d070..eaf2a2a 100644 --- a/static/index.js +++ b/static/index.js @@ -179,7 +179,7 @@ let CW = function() { if (x>0) { // we check if we are connected on the left of the first letter connected ||= CWDATA.board[y][x-1] != ""; } - if (x === 7 && y === 7) connected = true; // starting tile + if (x === 7 && y === 7 && placed.length > 1) connected = true; // starting tile // check if the placed letters are aligned and complete connection checks on the first and last letters let direction = undefined; if (x === lastx) { |