3bec7a84d8
Lay foundation for promotions.
2023-07-01 09:29:43 +02:00
52540ec96c
A lot of changes again?!?
2023-06-30 01:49:18 +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
d55c7bbe1a
Fix resetting the board in case a new game is started.
2023-06-08 20:23:00 +02:00
0627a627d8
Send new websocket message type for sending a move.
2023-06-08 17:14:50 +02:00
6e5d84364d
Various changes.
2023-06-08 17:10:48 +02:00
605743c0d2
Introduce api types and some changes.
2023-06-02 23:28:40 +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
bff46e6f3d
Fix that only allows the correct pieces to be allowed to move.
2022-12-22 00:36:30 +01:00
0b7c3897e5
1. Remove leading counter from move message,
...
2. Only allow color to move when it's their turn.
2022-12-21 23:14:53 +01:00
aaaf40bb2b
Remove a redundant call to ChessBloc that caused the position to be renewed twice.
...
Fix a index error (Column started with 0 while rows started with 1).
2022-12-18 23:43:06 +01:00
2ad028f8a7
Many many changes.
2022-12-18 01:04:08 +01:00
c04407ae67
Make chess work.
...
Remove sending the new move in moveHandler, in order to prevent a loop
move -> emit -> move ...
Handle incoming moves.
There still is a major bug. Sometimes random pieces move.
2022-12-14 23:17:31 +01:00
7198f591bd
Replace print() calls with log() calls.
2022-12-13 03:43:05 +01:00
3889245c8a
Add function to flip board.
2022-12-13 03:35:01 +01:00
35f815e82f
Fix bug that removed every piece except the moved one.
2022-11-19 16:55:25 +01:00
1dab094d19
Change move messages.
2022-11-19 13:24:25 +01:00
42e90f10a6
Reactivate stream builder and send pre-check messages.
2022-11-19 11:37:56 +01:00
aa3e3187c4
For testing purposes send move to server.
2022-11-13 14:27:00 +01:00
0ab37c5564
Change pre-checking to be method-driven instead of event-driven, so we can get the return value.
2022-11-13 03:50:29 +01:00
8ebc010e63
Fix shit.
2022-11-13 03:42:30 +01:00
f5f89a070d
MORE CHANGES. Pieces can be moved now.
2022-11-13 03:24:42 +01:00
b3a7418c5f
More changes. Memory error when accessing state.position in ChessBloc.
2022-11-13 02:42:10 +01:00
f7701138a4
Add chess bloc.
2022-11-13 01:03:09 +01:00