69 Commits

Author SHA1 Message Date
Moon Patel 30156bc0db chore: setup typesript 2024-08-23 21:21:56 +05:30
Moon Patel 231e1658de chore 2024-08-22 07:48:17 +05:30
Moon Patel eff32a7be3 fix static path updated to work in PRODUCTION mode 2024-05-13 22:10:30 +05:30
Sudhanshu Jain 514e7b5fd1 [#24] added feature for marking last move 2023-11-15 15:58:36 +05:30
Soumya Ranjan Swain a1224a8e67 used env file in authentication instead of static 2023-10-31 05:32:09 +05:30
Soumya Ranjan Swain 37197e37f1 add moves can be viewed using left, right keys 2023-10-31 05:32:09 +05:30
Moon Patel 6a11378b44 improved chess board css 2023-10-23 02:52:00 +05:30
Dharmendra Singh Chaudhary 4b5d0d20df Improved UI of player[computer] name. #25 (#26)
* Improve UI of player[computer] name. #25

* replacing computer icon in place of computer text
2023-10-22 22:10:18 +05:30
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 662cd02cfd API endpoints changed, save profile feature added 2023-10-19 19:05:49 +05:30
Moon Patel 8ef25e5923 fix: piece cannot be captured by clicking 2023-10-16 02:08:06 +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 69f950c48f added favicon and changes title 2023-10-15 02:27:37 +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 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 f9639b5dc4 added computer mode 2023-10-11 22:43:37 +05:30
Moon Patel eec889cf0c fix: cell zIndex UI bug 2023-09-19 00:36:55 +05:30
Moon Patel f318d426ee dockerizing frontend 2023-09-18 12:51:56 +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 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
Moon Patel b2af52f2c6 .env.example added 2023-07-15 16:43:37 +05:30
Moon Patel 78a3187e9a feature: Profile page update user info 2023-07-14 19:53:58 +05:30
Moon Patel e8775ff8e1 feature: Add Friends
Now other user can be added as friends in Settings > Friends
2023-07-13 23:12:01 +05:30
Moon Patel 03fd3a0692 changed: chessboard background color saturation 2023-07-12 19:01:30 +05:30
Moon Patel 86041aef9d changed: Profile component in Settings 2023-07-12 18:52:12 +05:30
Moon Patel ceecac85dd Friends component in Settings page improved 2023-07-12 18:22:19 +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 892936c84c changed: background colors and colors changes in various places 2023-07-11 20:45:29 +05:30
Moon Patel 71e5c276e8 minor changes 2023-07-11 20:03:11 +05:30
Moon Patel 24cefafa87 removing console logs and some improvements 2023-07-08 02:21:20 +05:30
Moon Patel 136136cfb0 removed JoinChallenges.jsx 2023-07-08 02:10:51 +05:30
Moon Patel 8f39b29377 New feature added: Games automatically saved in database after game
ends in pgn format
2023-07-07 19:10:48 +05:30
Moon Patel 3f22a674e7 Implemented the challenge accept and decline buttons
TODO: Delete room when the challenged user declines the challenge
2023-07-06 23:07:15 +05:30
Moon Patel 189f35a232 Feature added: Exit the game when opponent resigns 2023-07-05 21:44:41 +05:30
Moon Patel 128e86ecb4 feature added: checkmate detection and ending game on checkmate 2023-07-05 21:25:28 +05:30
Moon Patel 313906eb5d Added timers but it is not stable for now 2023-07-05 18:28:16 +05:30
Moon Patel a7a1d08b46 Added a useCountDown hook to handle countdown 2023-07-05 16:14:11 +05:30
Moon Patel 1e77891971 prevent user from making move when not in current state of game. 2023-07-04 20:03:43 +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