169 Commits

Author SHA1 Message Date
Karma Riuk
9a66a71c38 handling better the output of perft 2025-02-03 13:59:33 +01:00
Karma Riuk
41e4119468 reordered members of enum 2025-02-03 13:51:43 +01:00
Karma Riuk
e7fc1b06de fixed the is_within_bounds check 2025-02-03 13:50:48 +01:00
Karma Riuk
5f79b81ce4 added validity check when creating coords from index 2025-02-03 13:50:34 +01:00
Karma Riuk
e5819ee83b minor fix 2025-02-03 13:50:15 +01:00
Karma Riuk
58109c5120 fixed condition 2025-02-03 13:49:40 +01:00
Karma Riuk
6478176a7d fixed check condition 2025-02-03 13:47:27 +01:00
Karma Riuk
ab088da33c removed useless this-> 2025-02-03 13:47:17 +01:00
Karma Riuk
31799cb0ec added optimization and warning flags to the compiler 2025-02-03 13:44:53 +01:00
Karma Riuk
96dcbc0a6c actually counting milliseconds now 2025-02-03 13:41:45 +01:00
Karma Riuk
ce06097063 i forgot to actually implement the root legal_moves haha 2025-02-03 01:12:30 +01:00
Karma Riuk
3fc2aa73ad actually counting milliseconds now 2025-02-03 01:06:07 +01:00
Karma Riuk
de6a03ce08 fixed mistake 2025-02-03 01:05:59 +01:00
Karma Riuk
dc3031ddc1 we can finally print pieces and colours properly 2025-02-03 01:05:37 +01:00
Karma Riuk
5e4b880aad checking perft to see if my cpp implementation is
correct
2025-02-03 00:33:12 +01:00
Karma Riuk
540ffa4fb3 fixed slight mistake 2025-02-03 00:33:04 +01:00
Karma Riuk
21136a26f0 implemented the last details to make everything
work (hopefully)
2025-02-03 00:08:37 +01:00
Karma Riuk
fa57dcfc30 apparently the default value of a paramter goes in
the declaration and not the defintion, i didn't know that
2025-02-03 00:08:13 +01:00
Karma Riuk
8da349579d make_move now checks castle rights after each move 2025-02-02 23:52:24 +01:00
Karma Riuk
f0467bc516 make_move now handles castling 2025-02-02 23:34:10 +01:00
Karma Riuk
a7cf8e0c21 make_move now handles the setting of en passant
targets
2025-02-02 23:33:52 +01:00
Karma Riuk
2128159914 make_move now handles promotion 2025-02-02 23:33:29 +01:00
Karma Riuk
c564add509 removed useless variable 2025-02-02 23:33:20 +01:00
Karma Riuk
31b0656332 fixed promotion missing colour 2025-02-02 23:16:53 +01:00
Karma Riuk
24165bb5bb made comment more accurate 2025-02-02 23:14:13 +01:00
Karma Riuk
4c8fdfa3b4 implemented en passant in legal moves 2025-02-02 23:13:37 +01:00
Karma Riuk
84c3af2bb1 fully support FEN strings now
Some checks failed
pre-release / Pre Release (push) Has been cancelled
tagged-release / Tagged Release (push) Has been cancelled
v0.6.0
2025-02-02 23:05:42 +01:00
Karma Riuk
22acfc5027 fixed slight bug 2025-02-02 23:05:26 +01:00
Karma Riuk
1ff4b6b1f4 implemented the en passant target support for FEN
strings
2025-02-02 22:52:46 +01:00
Karma Riuk
2493892b05 added algebraic support for coordinates 2025-02-02 22:39:06 +01:00
Karma Riuk
bdd8011577 now support the castling sides of the FEN string 2025-02-02 22:05:33 +01:00
Karma Riuk
5549c77177 updated testing library 2025-02-02 22:04:41 +01:00
Karma Riuk
be016dcbcc fixed type mismatch 2025-02-02 22:04:31 +01:00
Karma Riuk
efd7bf6794 gave default values to the board fields because
they were causing undefinied behaviour
2025-02-02 22:04:04 +01:00
Karma Riuk
81b24d3082 extended FEN support to include who's turn it is 2025-02-02 21:39:33 +01:00
Karma Riuk
497da2de8e updated assert equals to fail fast 2025-02-02 21:39:02 +01:00
Karma Riuk
0574a11b32 fixed minor bug 2025-02-02 21:37:43 +01:00
Karma Riuk
472f9e4c7c made CastleSide a normal enum again to use &
Some checks failed
tagged-release / Tagged Release (push) Has been cancelled
v0.5.2
2025-02-02 21:30:37 +01:00
Karma Riuk
f5292fa6d7 added small comment 2025-02-02 21:22:38 +01:00
Karma Riuk
8a3a92f80f minor change 2025-02-02 21:14:31 +01:00
Karma Riuk
b7ad7b3111 implemented king legal moves 2025-02-02 21:14:14 +01:00
Karma Riuk
b329c41bea got rid of magic numbers 2025-02-02 21:13:30 +01:00
Karma Riuk
1625345f08 fixed board.cpp 2025-02-02 20:28:50 +01:00
Karma Riuk
a790677bb7 implemented queen legal moves 2025-02-02 20:28:41 +01:00
Karma Riuk
703dcef59f implemented knight legal moves 2025-02-02 20:24:42 +01:00
Karma Riuk
d74222c2f4 implemented rook legal moves 2025-02-02 20:19:07 +01:00
Karma Riuk
01c912435b implemented bishop legal moves 2025-02-02 20:17:36 +01:00
Karma Riuk
8bf164cb05 extracted coords to its own hpp 2025-02-02 20:17:27 +01:00
Karma Riuk
e08dbb913e fixed board and pawn moves 2025-02-02 19:49:21 +01:00
Karma Riuk
fea3f6c98a fixed signature 2025-02-02 18:24:23 +01:00