Commit Graph

14 Commits

Author SHA1 Message Date
582fa87224 Fix the coloring of the last move after an invalid move was played. 2024-01-09 19:07:36 +01:00
0b4da28864 Implement moves by tapping the squares
This adds an option to dragging-and-dropping which is slightly hard on
smaller screens.
2024-01-05 22:59:31 +01:00
289ec6db26 Fix turnColor handling 2023-12-25 18:08:21 +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
01dcc74cfc Refactor chess square and prepare display of square in check. 2023-09-04 21:39:51 +02:00
43d8d77abc Fix the current position in ChessPositionManager, now that we rely on position instead of detecting en passant ourselves. 2023-08-15 00:39:10 +02:00
c213d9b1f3 Use position to build board
Now the client considers the position sent by the server to build the
position on the board.
2023-08-14 17:04:25 +02:00
a5befed62c Make promotions work. 2023-07-03 19:41:12 +02:00
3bec7a84d8 Lay foundation for promotions. 2023-07-01 09:29:43 +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
8572aa73e6 Add ChessPosition that will handle position. 2023-01-30 22:39:13 +01:00
80a24bafd6 Add GoRouter and do a lot of renaming. 2022-12-25 16:16:23 +01:00
2ad028f8a7 Many many changes. 2022-12-18 01:04:08 +01:00
126286ece4 Add chess_events.dart file. 2022-11-13 13:10:06 +01:00