236 Commits

Author SHA1 Message Date
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
Karma Riuk
da55f0085f implemented (partially) the pawn move 2025-02-02 18:17:37 +01:00
Karma Riuk
95327ec653 cleaned up main 2025-02-02 18:17:19 +01:00
Karma Riuk
1a4e33201e when loading a fen ref, i return the object and
not a pointer
2025-02-02 18:17:02 +01:00
Karma Riuk
d6baf1ee53 added main to gitignore 2025-02-02 18:16:45 +01:00
Karma Riuk
67e377bfde made some seperation of concerns 2025-02-02 17:16:37 +01:00
Karma Riuk
29453fbb14 implemented some stuff 2025-02-02 17:13:55 +01:00
Karma Riuk
585e392b6a created move struct 2025-02-02 16:49:24 +01:00
Karma Riuk
d436c5a032 made stuff a tiny bit more compact 2025-02-02 16:49:10 +01:00
Karma Riuk
08c0a3b50b added test support to the makefile 2025-02-02 16:37:59 +01:00
Karma Riuk
0ae37a3eba did some stuff to make makefile work... it was
painful
2025-02-02 16:26:46 +01:00
Karma Riuk
c83129a0d5 added cpp gitignore 2025-02-02 15:31:45 +01:00
Karma Riuk
acfa27c83e removed binary files 2025-02-02 15:21:04 +01:00
Karma Riuk
85a5bfa328 moved some stuff around 2025-02-02 15:15:14 +01:00
Karma Riuk
139a5c7d8f fixed missing imports
Some checks are pending
pre-release / Pre Release (push) Waiting to run
2025-02-02 14:54:17 +01:00
Karma Riuk
3a2988d351 fixed permissions of fields 2025-02-02 14:53:17 +01:00
Karma Riuk
c758d1854f removed useless imports 2025-02-02 14:52:47 +01:00
Karma Riuk
53a0755547 extracted the assert equals to another file to
have mulitple test files
2025-02-02 14:52:13 +01:00
Karma Riuk
4792daf127 cpp board can go back and forth from FEN
Some checks failed
pre-release / Pre Release (push) Waiting to run
tagged-release / Tagged Release (push) Has been cancelled
v0.5.1
2025-02-02 14:50:44 +01:00
Karma Riuk
947114877b moved everything related to python in the python
Some checks failed
pre-release / Pre Release (push) Waiting to run
tagged-release / Tagged Release (push) Has been cancelled
folder
v0.5.0
2025-02-02 13:20:59 +01:00
Karma Riuk
166e1c7664 added some positions to test the move generation 2025-02-02 13:18:25 +01:00
Karma Riuk
84d73511d2 fixed a bunch of issues with the move generation 2025-02-02 12:58:05 +01:00
Karma Riuk
4bb068b2a5 added complete FEN support both for reading and writing 2025-02-01 18:34:41 +01:00
Karma Riuk
92e1ff26fc added pawn promotion 2025-02-01 16:43:02 +01:00
Karma Riuk
c7884e227b made the initial board a memeber of the board
Some checks failed
pre-release / Pre Release (push) Has been cancelled
module
2025-02-01 10:37:02 +01:00
Karma Riuk
e6fafc8081 implemented en passant
Some checks failed
pre-release / Pre Release (push) Waiting to run
tagged-release / Tagged Release (push) Has been cancelled
v0.4.0
2025-01-31 18:55:02 +01:00
Karma Riuk
1be71bf203 fixed giga spelling mistake (it's castling right, not castling write) 2025-01-31 18:27:44 +01:00
Karma Riuk
e862ab6b0b added comments to the make_move function 2025-01-31 18:24:52 +01:00
Karma Riuk
6c0819428e implemented checkmate
Some checks failed
pre-release / Pre Release (push) Waiting to run
tagged-release / Tagged Release (push) Has been cancelled
v0.3.0
2025-01-31 18:20:12 +01:00
Karma Riuk
496207861e implemented castling
Some checks failed
pre-release / Pre Release (push) Waiting to run
tagged-release / Tagged Release (push) Has been cancelled
v0.2.0
2025-01-31 16:35:41 +01:00
Karma Riuk
87e8e75c04 simplified moves, made them algebraic 2025-01-31 16:35:29 +01:00
Karma Riuk
13e3675665 fixed FEN reading for castling writes 2025-01-31 16:33:56 +01:00
Karma Riuk
2e27e7b703 implemented king moves (missing castles) 2025-01-31 15:22:49 +01:00
Karma Riuk
d7863e0d81 added capturing circle around possible capture for
legal moves
2025-01-31 14:34:54 +01:00