Cozma Rares
bbca310550
fix(mobile): dynamic height for bg color
2023-08-09 16:33:57 +03:00
Cozma Rares
641739e892
multiple changes
...
- implement redo
- add a little responsitivity
- fix image width hack
- hack history height
- variable buttons to history
2023-08-07 01:31:10 +03:00
Cozma Rares
d33b2b4dd2
multiple changes
...
- add engdame state to local game
- clean engine code
- add endgame tests
- fix tests
- fix san checkmate symbol
2023-08-06 00:50:13 +03:00
Cozma Rares
68fdf7dd8d
fix: tests and infer props
2023-08-05 15:37:06 +03:00
Cozma Rares
dfc222b688
fix: chessboard border
2023-08-05 14:49:26 +03:00
Cozma Rares
41b99e91b6
fix: history scroll
2023-08-05 13:00:32 +03:00
Cozma Rares
abda45d393
feat: generate correctly moves in SAN notaion
2023-08-03 01:04:01 +03:00
Cozma Rares
4b1488b427
feat: add history button functionality and clean the code
2023-08-02 23:25:36 +03:00
Cozma Rares
c6584bd9d8
chore: reorganize files
2023-08-02 18:16:57 +03:00
Cozma Rares
02333e68cd
feat: add local game and history
2023-08-02 01:38:08 +03:00
Cozma Rares
69cd39f5e3
refactor: remove pre-compute of checkmate and draw, and rename 'Modal' property
2023-08-01 01:29:12 +03:00
Cozma Rares
e6216aec9a
feat: handle opponent disconnect
2023-08-01 01:09:08 +03:00
Cozma Rares
a001ef57a5
feat: implement three fold repetiion check
...
and some fixes
- start another game without refresh
- chessboard handle click types
2023-08-01 00:14:05 +03:00
Cozma Rares
0b68d701c1
multiple changes
...
- add gameover overlay
- fix active tile background
- redirect to home on invalid page
- compute checkmate and draw after making a move
- cleanup code
- error handling on making moves
2023-07-31 01:24:26 +03:00
Cozma Rares
259393ca1b
chore: remove console logs
2023-07-30 18:23:41 +03:00
Cozma Rares
ce09e99c28
fix: add error handling for making moves
2023-07-30 15:25:44 +03:00
Cozma Rares
7088f89065
fix: board rerender, make moves when not your turn, cannot join as white
2023-07-30 12:44:19 +03:00
Cozma Rares
abb9d4d092
fix: Home page errors
2023-07-30 12:06:07 +03:00
Cozma Rares
156073b6a0
BIG feat: add sockets, create and join games
2023-07-29 22:42:08 +03:00
Cozma Rares
6874bba431
refactor: move promotion choice a modal
2023-07-24 13:00:22 +03:00
Cozma Rares
fd2d91deef
feat: add react-router
2023-07-24 12:27:31 +03:00
Cozma Rares
76032237d4
chore: reorganize files and add some boilerplate
2023-07-24 12:18:58 +03:00
Cozma Rares
7d6dc492c3
feat: add promotion moves
2023-07-24 08:36:39 +03:00
Cozma Rares
f9decf0fc5
feat: remove moves that leave the king in check
2023-06-08 23:59:41 +03:00
Cozma Rares
9249ba7524
feat: add history and update positon info
2023-06-07 00:53:51 +03:00
Cozma Rares
e1da622457
feat: create chessboard, fix makeMove
2023-06-06 23:34:39 +03:00
Cozma Rares
3878b343b4
feat: implement 'makeMove', generate castling and en passant moves
2023-06-02 16:29:52 +03:00
Cozma Rares
5e8b88bee6
refactor: remove some empty lines
2023-05-31 09:25:15 +03:00
Cozma Rares
fb71ab2fec
feat: implement 'insufficientMaterial'
2023-05-30 00:34:11 +03:00
Cozma Rares
83fefbc71a
fix: tests and attacked squares
2023-05-01 02:37:43 +03:00
Cozma Rares
77c58eae1e
feat: generate moves based on turn
2023-05-01 01:41:33 +03:00
Cozma Rares
c45c299b68
feat: implement 'isCheck', 'isCheckmate' and 'isStalemate'
2023-05-01 00:54:42 +03:00
Cozma Rares
8f47ce2ef7
feat: don't include king moves that put him in check
2023-05-01 00:42:04 +03:00
Cozma Rares
105a80d0f1
test: add tests for queen and king moves
2023-04-30 18:53:57 +03:00
Cozma Rares
b8b9866032
test: add tests for rook moves
2023-04-30 18:16:31 +03:00
Cozma Rares
522afaa155
test: add missing tests for pawn moves
2023-04-17 23:11:22 +03:00
Cozma Rares
21b6de8d21
test: add tests for bishop moves
2023-04-17 23:03:21 +03:00
Cozma Rares
da29d2623a
test: add tests for knight moves
2023-04-17 13:36:55 +03:00
Cozma Rares
1bab968d15
fix: tests for pawn moves, rank function and object, generatePawnMoves
2023-04-16 22:53:58 +03:00
Cozma Rares
addd122887
test: add tests for simple pawn moves
2023-04-16 22:53:28 +03:00
Cozma Rares
9c296d3429
feat: generate legal moves for a square
2023-04-15 02:10:46 +03:00
Cozma Rares
d5bfe6f5b2
fix: getFEN
2023-04-15 00:40:07 +03:00
Cozma Rares
6988e65e44
test: add tests for getFEN
2023-04-15 00:38:41 +03:00
Cozma Rares
35fac25bf2
test: add more tests for loadFEN
2023-04-15 00:28:42 +03:00
Cozma Rares
1f15540d6f
feat: add ascii representation of board
2023-04-15 00:22:00 +03:00
Cozma Rares
d74ca3dbcb
test: add tests
2023-04-07 01:51:43 +03:00
Cozma Rares
3fc3502826
refactor: add chess builder class
2023-04-07 01:50:55 +03:00
Cozma Rares
e154d9fdb2
feat: get FEN of current position
2023-04-07 00:18:06 +03:00
Cozma Rares
35361a5835
feat: load chess board from FEN
2023-04-05 19:10:15 +03:00
Cozma Rares
c04d78e05a
refactor: just throw an error from validateFEN
2023-04-05 17:55:34 +03:00