Commit Graph

28 Commits

Author SHA1 Message Date
e4d4b81cba flutter pub upgrade 2024-05-19 14:44:06 +02:00
2bed5409ef flutter pub upgrade 2024-05-15 21:15:20 +02:00
fb42a05f72 flutter upgrade & flutter pub upgrade 2024-05-09 22:45:20 +02:00
ebab1a4c46 upgrade dependencies 2024-03-11 02:05:32 +01:00
8fd01eed1e Remove conditional_wrap 2024-02-01 11:18:58 +01:00
6882505174 Start a tap with drag
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.
2024-02-01 11:11:11 +01:00
212a54612c Implement moves by tapping the squares
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
2024-01-17 20:58:13 +01:00
dfd9f09ee6 Update pubspec 2024-01-05 22:58:05 +01:00
cdc0144e39 Fix routing again 2023-12-27 15:46:15 +01:00
7a51e71767 Make passphrase entry a dialog instead of a page.
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.
2023-12-23 16:44:23 +01:00
8f4cd2266f Handle board status message
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
2023-12-09 20:48:36 +01:00
e441aaec1e pub ugrade 2023-11-27 00:20:02 +01:00
01dcc74cfc Refactor chess square and prepare display of square in check. 2023-09-04 21:39:51 +02:00
7c5439a635 Display last played move.
We now color the squares of the last move. This makes the state of the
board clearer and shows whose turn it is.
2023-08-19 03:45:03 +02:00
9ce188ae32 dart fix 2023-07-03 19:55:44 +02:00
43fca47dae Changes you see? To many to name them. And a splash screen for flutter web of course. 2023-06-28 12:37:59 +02:00
6e5d84364d Various changes. 2023-06-08 17:10:48 +02:00
b0d6f4002c Change connection handling (Use playerID from registering to connect via websocket. 2023-05-28 17:44:22 +02:00
9492644ac9 Introduce changes in API (register game first, then ws connection). 2023-05-28 14:54:46 +02:00
122731ac50 Remove html depencencies and alway connecto to remote server. 2023-01-29 21:09:18 +01:00
c7810d4e7e Remove /# from URL when using the web app 2022-12-28 20:27:38 +01:00
80a24bafd6 Add GoRouter and do a lot of renaming. 2022-12-25 16:16:23 +01:00
27f0e802ae pubspec.lock 2022-12-13 03:36:39 +01:00
8d5cf7592d Add Connection cubit that updates the part that must be rebuilt after a reconnect. 2022-11-19 16:36:29 +01:00
05980a6b63 Adding dependency to web_socket_channel 2022-11-13 14:25:18 +01:00
f5f89a070d MORE CHANGES. Pieces can be moved now. 2022-11-13 03:24:42 +01:00
94b7c227c9 Make a lot of changes. CAUTION: Board flips on purpose on every move. 2022-11-13 01:03:47 +01:00
1d528d4be2 Initial commit. Board builds but without pieces and logic. 2022-11-12 22:55:45 +01:00