Commit Graph

  • 30156bc0db chore: setup typesript main Moon Patel 2024-08-23 21:21:56 +05:30
  • 231e1658de chore Moon Patel 2024-08-22 07:48:17 +05:30
  • eff32a7be3 fix static path updated to work in PRODUCTION mode Moon Patel 2024-05-13 22:10:30 +05:30
  • ee77788fb8 npm run start and npm run dev scripts update Moon Patel 2024-05-13 22:09:57 +05:30
  • 75e4aa3e08 PROD mode and backend/.env.example update Moon Patel 2024-05-13 21:41:20 +05:30
  • 514e7b5fd1 [#24] added feature for marking last move Sudhanshu Jain 2023-11-15 02:49:28 +05:30
  • a1224a8e67 used env file in authentication instead of static Soumya Ranjan Swain 2023-10-30 22:58:10 +05:30
  • 37197e37f1 add moves can be viewed using left, right keys Soumya Ranjan Swain 2023-10-23 10:52:47 +05:30
  • 8b452124ff Revert "improved chess board css" revert-29-chess-board-ui Moon Patel 2023-10-23 02:52:10 +05:30
  • 6a11378b44 improved chess board css Moon Patel 2023-10-23 02:49:37 +05:30
  • 9522261b89 improved chess board css chess-board-ui Moon Patel 2023-10-23 02:49:37 +05:30
  • 4b5d0d20df Improved UI of player[computer] name. #25 (#26) Dharmendra Singh Chaudhary 2023-10-22 22:25:18 +05:45
  • 20627e0c98 Merge pull request #22 from moonpatel/refactoring Moon Patel 2023-10-20 17:04:18 +05:30
  • 59af2e756a refactored reducer function in chess-game-context.sx The reducer function in chess-game-context.jsx previously accepted two different action types MOVE_PIECE and CAPTURE_PIECE. Due to this the caller has to verify whether a move is a simple move or a capture. Since, the dispatch was called in multilpe places, it is better to keep one action type MOVE_PIECE and move the differentiating logic to the reducer. Also this commit implements a playAudioCallback which receives an action string and plays an audio accordingly. This is passed to the dispatch function and it is the responsibility of the reducer to call it with an appropriate action. refactoring Moon Patel 2023-10-20 16:54:57 +05:30
  • 133c762b3b refactored api Moon Patel 2023-10-19 19:37:30 +05:30
  • 662cd02cfd API endpoints changed, save profile feature added Moon Patel 2023-10-19 19:00:50 +05:30
  • 6f420a40dd changes in api Moon Patel 2023-10-19 01:26:05 +05:30
  • c1bcae5bc2 Merge pull request #17 from moonpatel/bugfix Moon Patel 2023-10-16 02:12:21 +05:30
  • 8ef25e5923 fix: piece cannot be captured by clicking bugfix Moon Patel 2023-10-16 02:08:06 +05:30
  • 7fc3616248 Merge branch 'main' into newbranch Moon Patel 2023-10-15 23:41:32 +05:30
  • fc1d5d4143 added color choice for computer game and fixed bug of computer not making move when player chooses black Moon Patel 2023-10-15 23:20:46 +05:30
  • 8400364197 Update README.md Moon Patel 2023-10-15 20:29:43 +05:30
  • d7d9f318da Update README.md Moon Patel 2023-10-15 20:28:45 +05:30
  • 69f950c48f added favicon and changes title Moon Patel 2023-10-15 02:27:37 +05:30
  • ab3aedfc3b making stockfish16 engine executable to prevent spwan EACCES error Moon Patel 2023-10-15 01:55:12 +05:30
  • f5cf5c4619 fix: set cookies error while authentication in production Moon Patel 2023-10-15 01:38:43 +05:30
  • ca0c59e470 Update README.md Moon Patel 2023-10-14 20:43:48 +05:30
  • 2b09cad7c1 Merge branch 'main' of https://github.com/moonpatel/ChessHub Moon Patel 2023-10-14 20:27:30 +05:30
  • 35fbc2a8ce feat: added bind mounts to docker-compose.yml file for hot reload Moon Patel 2023-10-14 20:26:57 +05:30
  • c8c5c30670 added image in README.md Moon Patel 2023-10-13 03:18:14 +05:30
  • 58752a1244 Update README.md Moon Patel 2023-10-13 03:16:50 +05:30
  • e28f876b74 bug fix in backend docker file Moon Patel 2023-10-13 03:07:39 +05:30
  • e87629f736 stockfish chess engine added the engine is compatible wiht linux systems. If you are running on windows add windows engine. Moon Patel 2023-10-13 01:14:37 +05:30
  • ea04c7eb9d feat: add friend from settings pages Now the user can add friend to his friends list through the settings page Moon Patel 2023-10-13 00:53:52 +05:30
  • 5a0498af4d resolved errors in multiplayer chess game Moon Patel 2023-10-11 23:14:37 +05:30
  • 83a7192dea updated .env.example in backend Moon Patel 2023-10-13 00:54:20 +05:30
  • 85475946eb Merge branch 'main' of https://github.com/moonpatel/ChessHub Moon Patel 2023-10-11 22:51:40 +05:30
  • 20a9c75bd1 Update README.md Moon Patel 2023-10-11 23:34:56 +05:30
  • f9639b5dc4 added computer mode Moon Patel 2023-10-11 22:43:37 +05:30
  • dcbd9477fe chessbot added Moon Patel 2023-09-30 09:22:17 +05:30
  • eec889cf0c fix: cell zIndex UI bug Moon Patel 2023-09-19 00:36:55 +05:30
  • eb80309f27 docker-compose.yml added Moon Patel 2023-09-19 00:36:36 +05:30
  • a42a7d0e75 dockerize backend Moon Patel 2023-09-18 21:58:47 +05:30
  • f318d426ee dockerizing frontend Moon Patel 2023-09-18 12:51:56 +05:30
  • 164da1ffee corrected cors origin Moon Patel 2023-09-14 00:13:08 +05:30
  • 4cca4b6527 changes added Moon Patel 2023-09-13 18:36:46 +05:30
  • 6d21475e20 cors origin Moon Patel 2023-09-13 18:35:36 +05:30
  • 2848cb213c changes Moon Patel 2023-09-13 18:31:34 +05:30
  • 7b1503d384 some changs Moon Patel 2023-09-13 14:28:58 +05:30
  • 0bd078438f health check route added Moon Patel 2023-09-13 13:50:15 +05:30
  • cf4670582d Handle error in challenge action Moon Patel 2023-07-30 20:02:30 +05:30
  • e98c50d25d fixed stale state closure bug by using useRef() in ChessGameContextProvider Moon Patel 2023-07-28 04:24:16 +05:30
  • 95fb999747 tests setup Moon Patel 2023-07-26 18:43:03 +05:30
  • b3b99a340a fixed eslint errors Moon Patel 2023-07-25 20:09:03 +05:30
  • 13fd73776d prop types added Moon Patel 2023-07-25 19:54:46 +05:30
  • d71444a6e5 import refactoring Moon Patel 2023-07-25 19:27:54 +05:30
  • bd13e2b129 bug fixes Moon Patel 2023-07-25 03:01:45 +05:30
  • f86846004f fixed: Friends list not shown in settings page Moon Patel 2023-07-23 19:04:49 +05:30
  • 156d4e6f2c Authentication UX improved. Moon Patel 2023-07-23 18:46:31 +05:30
  • d1a941319c Merge branch 'main' of https://github.com/moonpatel/ChessHub Moon Patel 2023-07-23 17:56:37 +05:30
  • 46be9f244e assets restructuring . Moon Patel 2023-07-23 13:58:22 +05:30
  • 336259421a new:MainLoader component added Moon Patel 2023-07-23 13:52:24 +05:30
  • bf51745afe Authentication component changed to adapt new changes in authentication APIs New packages added: -> zod - to add validation logic -> react-hook-form - handle form state Moon Patel 2023-07-23 13:22:45 +05:30
  • 81ff9e31a0 Authentication logic changed JWT is now stored in cookie instead of localStorage changed APIs: -> /api/auth/login -> /api/auth/signup new APIs: -> /api/auth/logout Moon Patel 2023-07-23 13:20:55 +05:30
  • 38e7fa47a2 Create README.md Moon Patel 2023-07-15 16:44:34 +05:30
  • b2af52f2c6 .env.example added Moon Patel 2023-07-15 16:43:37 +05:30
  • 78a3187e9a feature: Profile page update user info Moon Patel 2023-07-14 19:50:42 +05:30
  • e8775ff8e1 feature: Add Friends Now other user can be added as friends in Settings > Friends Moon Patel 2023-07-13 23:12:01 +05:30
  • 03fd3a0692 changed: chessboard background color saturation Moon Patel 2023-07-12 19:01:30 +05:30
  • 86041aef9d changed: Profile component in Settings Moon Patel 2023-07-12 18:52:12 +05:30
  • ceecac85dd Friends component in Settings page improved Moon Patel 2023-07-12 18:22:19 +05:30
  • 5c9dcb7533 changed: UI of GameHistory component and some minoor UI enhancements . Moon Patel 2023-07-12 18:19:52 +05:30
  • 892936c84c changed: background colors and colors changes in various places Moon Patel 2023-07-11 20:45:29 +05:30
  • 71e5c276e8 minor changes Moon Patel 2023-07-11 20:03:11 +05:30
  • 24cefafa87 removing console logs and some improvements Moon Patel 2023-07-08 02:21:20 +05:30
  • 136136cfb0 removed JoinChallenges.jsx Moon Patel 2023-07-08 02:10:51 +05:30
  • 8f39b29377 New feature added: Games automatically saved in database after game ends in pgn format Moon Patel 2023-07-07 19:10:48 +05:30
  • 0abd8e0660 hardcoded email id moved to .env file Moon Patel 2023-07-06 23:51:36 +05:30
  • 5786795e58 Changes in this commit: - New model added for games played - Game model ref added to User model - New APIs created to create and get games Moon Patel 2023-07-06 23:47:20 +05:30
  • 3f22a674e7 Implemented the challenge accept and decline buttons TODO: Delete room when the challenged user declines the challenge Moon Patel 2023-07-06 23:07:15 +05:30
  • 882837448c New apis added and old apis improved Moon Patel 2023-07-06 19:28:19 +05:30
  • 189f35a232 Feature added: Exit the game when opponent resigns Moon Patel 2023-07-05 21:44:41 +05:30
  • 128e86ecb4 feature added: checkmate detection and ending game on checkmate Moon Patel 2023-07-05 21:25:28 +05:30
  • 313906eb5d Added timers but it is not stable for now Moon Patel 2023-07-05 18:28:16 +05:30
  • a7a1d08b46 Added a useCountDown hook to handle countdown Moon Patel 2023-07-05 16:14:11 +05:30
  • 5dbf0409f6 new API endpoint added - DELETE /api/user/:username/challenges/:challengeID -> when user accepts or declines a challenge Moon Patel 2023-07-04 23:49:09 +05:30
  • 1e77891971 prevent user from making move when not in current state of game. Moon Patel 2023-07-04 17:18:38 +05:30
  • 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 Moon Patel 2023-07-04 16:50:40 +05:30
  • 1d26cca8d8 Go back button and go ahead button implemented TODO - Improve the styiling of the GameHistory component Moon Patel 2023-07-04 03:52:19 +05:30
  • d8d0c95779 New feature added: While in the match the user can go back it time to analyse previous moves. Moon Patel 2023-07-04 03:11:46 +05:30
  • 5f450e92fe Adding constants Moon Patel 2023-07-03 22:54:34 +05:30
  • 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 Moon Patel 2023-07-03 22:37:02 +05:30
  • 4e6bc1f198 click and move bug fixed Moon Patel 2023-07-03 18:09:20 +05:30
  • f7bb1e89cb Fixed: Incorrect friends list shown Moon Patel 2023-07-03 16:40:28 +05:30
  • 1d9f2cc65a file restructuring Moon Patel 2023-07-03 16:29:09 +05:30
  • c25d5bcca5 Styles for the play page fixed. The styles are now responsive and the web application can now also be viewed on mobile Moon Patel 2023-07-03 16:27:16 +05:30
  • 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. Moon Patel 2023-07-03 01:12:47 +05:30
  • 40acca7dd1 Challenging and room creating working now Moon Patel 2023-07-02 19:21:36 +05:30
  • dd5f3069d0 JWT auth token expiresIn option removed Moon Patel 2023-07-02 19:07:35 +05:30
  • 490bd539fe new api endpoint create - /api/user/:username/challenges returns a challenges sent to the current user by other users Moon Patel 2023-07-02 19:03:57 +05:30