With this change, the lobby selector gets its dark background back.
Also, now the passphrase can be submitted by pressing Enter and not only
by clicking the 'check' icon.
With the previous change of starting a tap on a drag,
we removed the GestureDetector from all squares with any pieces.
This included the opponent's pieces. Tapping and taking an opponent's
piece was not possible anymore.
This was a bug, since we still want to detect a tap and take an opponent's piece.
Now, only the empty squares contain a GestureDetector.
The GestureDetector is not necessary anymore in squares with pieces
because the tap is started when the drag is started.
This adds an option to dragging-and-dropping which is slightly hard on
smaller screens.
Fix promotions when tapping and fix handling of subsequently tapping two pieces of your color
Cancel tap if a drag is started (tapped square will not stay red in case a drag is started)
Change url strategy back to the hashtag thing
Change version
Fix bug that would not allow a piece move if you tried to take an opponents piece.
Fix the coloring of the last move after an invalid move was played.
Upgrading deps
Additionally, we set some groundwork for storing the game data (lobby
id, player id, passphrase) in permanent storage in order to reconnect
with it later.
This is another step to allow reconnecting after connection loss or
browser closing.
When the game is left with the X button on the bottom right, we will
close the websocket connection, to let the server know, that we are
gone.
The server still has issues that prevent this from working flawlessly.
Remove unused import