Commit Graph

13 Commits

Author SHA1 Message Date
Moon Patel bd13e2b129 bug fixes 2023-07-25 18:52:36 +05:30
Moon Patel 03fd3a0692 changed: chessboard background color saturation 2023-07-12 19:01:30 +05:30
Moon Patel 5c9dcb7533 changed: UI of GameHistory component and some minoor UI enhancements . 2023-07-12 18:19:52 +05:30
Moon Patel 24cefafa87 removing console logs and some improvements 2023-07-08 02:21:20 +05:30
Moon Patel aa6e463b60 Game state persistency implemented. Game state is
now saved on page refresh.
The game state is stored on the server and when the user refreshes
the page the game state is fetched from the server on socket
re-connection

Next step:
stop user from making any move when the use is viewing past moves
2023-07-04 16:59:20 +05:30
Moon Patel 8c99021395 Chess game logic move to chess-game-context.jsx
Improves code clarity as logic is handled by context provider and
application is handled by the component itself
2023-07-03 22:37:02 +05:30
Moon Patel 4e6bc1f198 click and move bug fixed 2023-07-03 18:09:20 +05:30
Moon Patel c25d5bcca5 Styles for the play page fixed. The styles are now responsive and
the web application can now also be viewed on mobile
2023-07-03 16:27:16 +05:30
Moon Patel 4853e5edd9 THIS IS A MAJOR MILESTONE
Socket connection re-implemented. Everything is working fine now.
All thats left to do is to make the app robust and handle some edge cases.
TODO
- The friends list is maybe hardcoded or whatever I dont know, but the problem is
  it shows the same username no matter who the signed in user is. I need to fix that.
- Whenever the pawn reaches to tha last square for promotion an 'Invalid move' error is
  thrown by the Chess class. Need to fix that too.
- Need to disable the chessboard (so user cannot make any moves) until the opponent has joined the game.
- Set timers for the game.
- Need to show the loading states in various places in the app.
- Improve the backend such that a user cannot create more than one room at a time.
- Remove hardcoded values from various places.
- Make the app responsive. The UI is good on desktop but it is very bad on mobile.
- Add a feature to search and add friends.
- Destroying the rooms when the match ends and set timers for auto destruction after a certain time.
- Need some logic to save games in the history.
- Add some tests.
2023-07-03 01:12:47 +05:30
Moon Patel ceb6a6993c socket implementation and multiplayer feature added in frontend 2023-07-02 14:45:49 +05:30
Moon Patel 16326766b7 refactoring - chess logic used from third party package 2023-07-01 03:22:59 +05:30
Moon Patel b45cc5194c drag and drop play implemented, audio integrated 2023-06-29 23:51:54 +05:30
Moon Patel 0a06890b81 socket connection established and chess logic imported from old codebase 2023-06-29 02:03:06 +05:30