Commit Graph

102 Commits

Author SHA1 Message Date
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
hugomanipoud2 164481ca87 pieces are appearing !! coordinate changes (from 1 to 8 to 0, 7. it was
an evidence but i did thought about it before)
2025-05-14 16:01:03 +02:00
hugomanipoud2 665e011dce constructor for getPieces as i have no idea why it is in the method,
pieces.clear
2025-05-14 15:39:35 +02:00
hugomanipoud2 13c3faafe4 populate board finished ? idk it doesnt work, maybe with setpiece 2025-05-12 16:08:10 +02:00
hugomanipoud2 d9622cdf16 last commit of day 2025-05-09 11:48:47 +02:00
hugomanipoud2 497b0a7a0d jsp mais je commit 2025-05-09 11:04:35 +02:00
hugomanipoud2 8225151d90 adding indexes to pieces to create disparate objects 2025-05-09 10:17:45 +02:00
hugomanipoud2 b6d66394af iswhite method 2025-05-09 09:46:47 +02:00
hugomanipoud2 f01cc5d127 testcommitpiecetype 2025-05-09 09:39:43 +02:00
hugomanipoud2 e1c893cada piecetype done 2025-05-09 09:37:20 +02:00
hugomanipoud2 242691796e piecetype work 2025-05-09 09:19:34 +02:00
hugomanipoud2 4dc627050c small update with constructors 2025-05-09 08:16:03 +02:00