Commit Graph

63 Commits

Author SHA1 Message Date
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
hugomanipoud2 7ab2b45919 Ts works ! needed to add back the Y with the for loop and now it
higlights the grid where i want and doesnt highlight the intial piece !
i have the original bluetile and the yellow ones
2025-05-20 15:00:33 +02:00
hugomanipoud2 817cf0511c trying things, kind of doesnt work but still progress 2025-05-20 14:56:49 +02:00
hugomanipoud2 3164fcde7c almost same as isSelected, understanding that i need to playwith
coordinates in if statements
2025-05-20 14:38:40 +02:00
hugomanipoud2 2f327e8af7 trying working with isHiglighted 2025-05-20 14:29:33 +02:00
hugomanipoud2 4087571352 implementation of movePiece and needPieceDeletion to Move class ! 2025-05-20 10:30:14 +02:00
hugomanipoud2 dbe928ce78 added a break statement to needpieceDeletion and everything works ! 2025-05-19 17:19:10 +02:00
hugomanipoud2 8f5a17fc1a needPiecedeletion implemented, it suppress the piece but doesnt move the
moving piece to the desired place
2025-05-19 17:08:31 +02:00
hugomanipoud2 63518d092e working on movePiece to remove pieces, might want to create another
method
2025-05-19 16:39:49 +02:00
hugomanipoud2 be812038d3 fixed the issue, setSelected had its if statement compparing selY with X
instead of Y, due to copy paste the line elsewhere and not verifying
2025-05-19 15:10:26 +02:00
hugomanipoud2 0a8cd17dc6 usertouch works for the 0,1 and the 6,7 collumns ? idek 2025-05-19 14:16:44 +02:00
hugomanipoud2 b821a42571 clean board now reset turnNb, advancements on usertouch, the turn
counter now works sometimes, the pieces dont move, idk
2025-05-19 13:11:14 +02:00
hugomanipoud2 651ef9ef43 added dockstrings explaining yuesterday's work 2025-05-19 12:47:44 +02:00
hugomanipoud2 0a2d60c62e implementation of movepiece, usertouch advancement and verification of
isturn white and turn nb, OK
2025-05-18 21:13:19 +02:00
hugomanipoud2 4adb78abfc correction isselected now not selecting all pieces 2025-05-18 20:51:46 +02:00
hugomanipoud2 c87dfd94b5 isSelected finished, working on usertouch 2025-05-18 19:58:42 +02:00
hugomanipoud2 a4250943d4 isturn white done 2025-05-18 19:32:48 +02:00
hugomanipoud2 faa41e63cd set piece done 2025-05-15 18:55:51 +02:00
hugomanipoud2 6d5e762636 ToString finished 2025-05-15 15:51:08 +02:00
hugomanipoud2 f7a946b576 functional to string method ! 2025-05-14 16:48:34 +02:00
hugomanipoud2 e44c7ad881 Saving progress for toString, does not work 2025-05-14 16:31:02 +02:00