114 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
Moon Patel ee77788fb8 npm run start and npm run dev scripts update 2024-05-13 22:09:57 +05:30
Moon Patel 75e4aa3e08 PROD mode and backend/.env.example update 2024-05-13 21:41:20 +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 20627e0c98 Merge pull request #22 from moonpatel/refactoring
refactored reducer function in chess-game-context.sx
2023-10-20 17:04: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 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