Commit Graph

103 Commits

Author SHA1 Message Date
Moon Patel 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.
2023-10-20 16:55:03 +05:30
Moon Patel 133c762b3b refactored api 2023-10-19 19:38:07 +05:30
Moon Patel 662cd02cfd API endpoints changed, save profile feature added 2023-10-19 19:05:49 +05:30
Moon Patel 6f420a40dd changes in api 2023-10-19 19:05:49 +05:30
Moon Patel c1bcae5bc2 Merge pull request #17 from moonpatel/bugfix
fix: piece cannot be captured by clicking
2023-10-16 02:12:21 +05:30
Moon Patel 8ef25e5923 fix: piece cannot be captured by clicking 2023-10-16 02:08:06 +05:30
Moon Patel 7fc3616248 Merge branch 'main' into newbranch 2023-10-15 23:41:32 +05:30
Moon Patel fc1d5d4143 added color choice for computer game and fixed bug of computer not making move when player chooses black 2023-10-15 23:20:46 +05:30
Moon Patel 8400364197 Update README.md 2023-10-15 20:29:43 +05:30
Moon Patel d7d9f318da Update README.md
badges added for tech stack
2023-10-15 20:28:45 +05:30
Moon Patel 69f950c48f added favicon and changes title 2023-10-15 02:27:37 +05:30
Moon Patel ab3aedfc3b making stockfish16 engine executable to prevent spwan EACCES error 2023-10-15 01:55:12 +05:30
Moon Patel f5cf5c4619 fix: set cookies error while authentication in production 2023-10-15 01:38:43 +05:30
Moon Patel ca0c59e470 Update README.md
Updated local setup instructions
2023-10-14 20:43:48 +05:30
Moon Patel 2b09cad7c1 Merge branch 'main' of https://github.com/moonpatel/ChessHub 2023-10-14 20:27:30 +05:30
Moon Patel 35fbc2a8ce feat: added bind mounts to docker-compose.yml file for hot reload 2023-10-14 20:26:57 +05:30
Moon Patel c8c5c30670 added image in README.md 2023-10-13 03:18:14 +05:30
Moon Patel 58752a1244 Update README.md
Instructions updated for local setup
2023-10-13 03:16:50 +05:30
Moon Patel e28f876b74 bug fix in backend docker file 2023-10-13 03:07:39 +05:30
Moon Patel e87629f736 stockfish chess engine added
the engine is compatible wiht linux systems. If you are running on
windows add windows engine.
2023-10-13 03:04:58 +05:30
Moon Patel ea04c7eb9d feat: add friend from settings pages
Now the user can add friend to his friends list through
the settings page
2023-10-13 00:55:43 +05:30
Moon Patel 5a0498af4d resolved errors in multiplayer chess game 2023-10-13 00:55:43 +05:30
Moon Patel 83a7192dea updated .env.example in backend 2023-10-13 00:55:43 +05:30
Moon Patel 85475946eb Merge branch 'main' of https://github.com/moonpatel/ChessHub 2023-10-11 22:51:40 +05:30
Moon Patel 20a9c75bd1 Update README.md
Added description, technologies used and steps to run locally.
2023-10-11 23:34:56 +05:30
Moon Patel f9639b5dc4 added computer mode 2023-10-11 22:43:37 +05:30
Moon Patel dcbd9477fe chessbot added 2023-09-30 09:22:17 +05:30
Moon Patel eec889cf0c fix: cell zIndex UI bug 2023-09-19 00:36:55 +05:30
Moon Patel eb80309f27 docker-compose.yml added 2023-09-19 00:36:36 +05:30
Moon Patel a42a7d0e75 dockerize backend 2023-09-18 21:58:47 +05:30
Moon Patel f318d426ee dockerizing frontend 2023-09-18 12:51:56 +05:30
Moon Patel 164da1ffee corrected cors origin 2023-09-14 00:13:08 +05:30
Moon Patel 4cca4b6527 changes added 2023-09-13 18:36:46 +05:30
Moon Patel 6d21475e20 cors origin 2023-09-13 18:35:36 +05:30
Moon Patel 2848cb213c changes 2023-09-13 18:31:34 +05:30
Moon Patel 7b1503d384 some changs 2023-09-13 14:28:58 +05:30
Moon Patel 0bd078438f health check route added 2023-09-13 13:50:15 +05:30
Moon Patel cf4670582d Handle error in challenge action 2023-07-30 20:02:30 +05:30
Moon Patel e98c50d25d fixed stale state closure bug by using useRef() in ChessGameContextProvider 2023-07-28 04:24:16 +05:30
Moon Patel 95fb999747 tests setup 2023-07-26 18:43:26 +05:30
Moon Patel b3b99a340a fixed eslint errors 2023-07-25 20:09:03 +05:30
Moon Patel 13fd73776d prop types added 2023-07-25 19:59:51 +05:30
Moon Patel d71444a6e5 import refactoring 2023-07-25 19:46:04 +05:30
Moon Patel bd13e2b129 bug fixes 2023-07-25 18:52:36 +05:30
Moon Patel f86846004f fixed: Friends list not shown in settings page 2023-07-23 19:04:49 +05:30
Moon Patel 156d4e6f2c Authentication UX improved. 2023-07-23 18:46:31 +05:30
Moon Patel d1a941319c Merge branch 'main' of https://github.com/moonpatel/ChessHub 2023-07-23 17:56:37 +05:30
Moon Patel 46be9f244e assets restructuring . 2023-07-23 13:58:22 +05:30
Moon Patel 336259421a new:MainLoader component added 2023-07-23 13:53:46 +05:30
Moon Patel 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
2023-07-23 13:24:55 +05:30