hugomanipoud2
|
418d32a7d3
|
bruh i solved castling without using IA im so hyped rn
|
2025-05-22 20:13:07 +02:00 |
hugomanipoud2
|
425b2696cd
|
maybe almost finished but doesnt work
|
2025-05-22 20:01:35 +02:00 |
hugomanipoud2
|
8ded4954b8
|
if king or rook moves the castling doesnt work !
|
2025-05-22 19:43:17 +02:00 |
hugomanipoud2
|
3fb0209a63
|
all conditions for castling are ok for white king
|
2025-05-22 19:26:52 +02:00 |
hugomanipoud2
|
d37206f77c
|
trying to setup shortcastling
|
2025-05-22 19:08:26 +02:00 |
hugomanipoud2
|
63c51f3d56
|
input not correct, now works
|
2025-05-22 17:37:42 +02:00 |
hugomanipoud2
|
99c1f81fee
|
created specialMOves class, pawnpromotion doesnt work idk
|
2025-05-22 17:36:30 +02:00 |
hugomanipoud2
|
57d39fff7d
|
now the game only allow selection of pieces if its their turn
|
2025-05-22 17:13:29 +02:00 |
hugomanipoud2
|
61f1b5e83a
|
debugging turnNb, now works correctly
|
2025-05-22 17:05:45 +02:00 |
hugomanipoud2
|
36cdfd1230
|
all pieces move correctly according to chess rules
|
2025-05-22 16:20:27 +02:00 |
hugomanipoud2
|
9e9e53c8c3
|
pawn almost finished need some ore work
|
2025-05-22 16:10:23 +02:00 |
hugomanipoud2
|
ac2a23e9a9
|
pawns cannot go further if a piece is in front of them regardless of
color
|
2025-05-22 15:42:42 +02:00 |
hugomanipoud2
|
95ace3afe1
|
implementation of is first pawn move to make the method comparable to
others
|
2025-05-22 15:36:42 +02:00 |
hugomanipoud2
|
40bffdbab7
|
creation of isPAwnMoveValid, implementation of the logic found to black
pawn tooo ishighlighted is now clean
|
2025-05-22 15:15:42 +02:00 |
hugomanipoud2
|
5c27832805
|
working on pawn movements, removed some spaghetti using the K variable
used on other movement methods
|
2025-05-22 14:58:28 +02:00 |
hugomanipoud2
|
189c7cb218
|
new method checkColor implemented, code is less spaghetti for king move
and knight move
|
2025-05-21 19:52:20 +02:00 |
hugomanipoud2
|
87aaad73e0
|
just added isQueenMoveValid as a separate method just in case i need it
for the future, king and knight can be simplified via a helper function,
working on that
|
2025-05-21 19:35:21 +02:00 |
hugomanipoud2
|
1dd328c408
|
king finished, next are the pawns eating movement
|
2025-05-21 19:29:55 +02:00 |
hugomanipoud2
|
a8c96922a5
|
knight finished
|
2025-05-21 19:25:22 +02:00 |
hugomanipoud2
|
6787c0eae2
|
it finnaly works, need to check board getPiece(x,y) instead of
selectedXY because only 1 case is concerned, knight an king soon ok
|
2025-05-21 19:21:57 +02:00 |
hugomanipoud2
|
759930016b
|
i dont even know if thats progress
|
2025-05-21 18:42:39 +02:00 |
hugomanipoud2
|
4ab757eec9
|
still trying for knight
|
2025-05-21 18:20:43 +02:00 |
hugomanipoud2
|
9c740ee1f0
|
advancement on knight but still doesnt work
|
2025-05-21 18:06:24 +02:00 |
hugomanipoud2
|
7526532ea4
|
creation of framework of knightMoves, will add the conditions to not be
able to be on cases that are white
|
2025-05-21 17:51:31 +02:00 |
hugomanipoud2
|
7b01772895
|
as the moovepool of the queen is one of a rook and bishop combined, an
or operator does the trick !
QUeen finished
|
2025-05-21 17:33:30 +02:00 |
hugomanipoud2
|
d62bdf7ad0
|
rook finished
|
2025-05-21 17:30:39 +02:00 |
hugomanipoud2
|
b11802b832
|
arrangement of isHighlighted, the bishop possible movment are now in the
class move, where it should be, the isHighlighted method is more
readable
|
2025-05-21 17:16:26 +02:00 |
hugomanipoud2
|
94858166b9
|
tostring essai d'amelioration
|
2025-05-21 16:38:16 +02:00 |
hugomanipoud2
|
a3159cc55e
|
bishop done
|
2025-05-21 14:45:47 +02:00 |
hugomanipoud2
|
8dc6c67272
|
added docstring to explain the ishighlighted method
|
2025-05-21 14:40:16 +02:00 |
hugomanipoud2
|
f3be5c6f6c
|
the code is so spaghetti but it WORKS, need to add docstrings and finish
all pieces
|
2025-05-21 14:05:06 +02:00 |
hugomanipoud2
|
e99013d05e
|
still doesnt work but its progress
|
2025-05-21 13:40:36 +02:00 |
hugomanipoud2
|
3388df84c8
|
tried adding a condition on if the color is different to add +1 to K in
this very direction, doesnt work at the moment
|
2025-05-21 13:17:41 +02:00 |
hugomanipoud2
|
5e3c50adc8
|
added all possibilities and it was weird but after reseting the K
variable it works ! now i need to add condition for opposite color
peices to be eaten
|
2025-05-21 13:11:23 +02:00 |
hugomanipoud2
|
4a42f94ce8
|
trying to implement correct movement to isHighlighted on the bishop ,
works weirdly, more work requiered
|
2025-05-21 12:52:54 +02:00 |
hugomanipoud2
|
59c9394a93
|
pawns now can go up 2 cases IFF they never moved
|
2025-05-21 12:13:14 +02:00 |
hugomanipoud2
|
8bcd0e2b14
|
knew that with getPieces with x and y for input, it could light up some
cases with specific pieces, trying to implement that
|
2025-05-21 11:29:38 +02:00 |
hugomanipoud2
|
981a4ece1a
|
pieces can now only go to highlighted cases, im litteraly a genius
|
2025-05-21 11:12:40 +02:00 |
hugomanipoud2
|
ab4e2b2d32
|
remove of yCord variable, pawn promotion works !
|
2025-05-21 11:00:26 +02:00 |
hugomanipoud2
|
32f43bed0d
|
forgotr to put Get y, now works but 1 move after, need to change to ToY
instead
|
2025-05-21 10:57:42 +02:00 |
hugomanipoud2
|
a0573a5ef8
|
pawn promotion for white pawns progress, doesnt work
|
2025-05-21 10:55:21 +02:00 |
hugomanipoud2
|
3e610d6fba
|
changed name of setSelectXY to isAPieceThere, working on pawn promotion
|
2025-05-21 10:47:21 +02:00 |
hugomanipoud2
|
f14ed809e5
|
removing isHiglighted called in user touch
|
2025-05-20 19:12:25 +02:00 |
hugomanipoud2
|
75cfb15bfd
|
isHighlighted finished !
|
2025-05-20 17:17:31 +02:00 |
hugomanipoud2
|
8d8f155fa0
|
added knight ishiglighted
|
2025-05-20 17:13:01 +02:00 |
hugomanipoud2
|
66a94a17cf
|
added queen and rook
|
2025-05-20 17:02:13 +02:00 |
hugomanipoud2
|
f8461a35f2
|
added bishop to ishighlighted
|
2025-05-20 16:58:10 +02:00 |
hugomanipoud2
|
28e5ec34af
|
still doesnt work idk
|
2025-05-20 16:17:59 +02:00 |
hugomanipoud2
|
37b2bb2a2f
|
fixed but doesnt higlight if no piece is in the way
|
2025-05-20 15:31:36 +02:00 |
hugomanipoud2
|
8a67fc5aff
|
added getPiece method to return piece into ishiglighted, doesnt work ATM
but i think its because getpiece returns null when starting the game,
the ishiglighted method might not like it
|
2025-05-20 15:18:59 +02:00 |