c7d7991a16castling can be undone et redo, but only for the concerned castle, the king will still move and the castlking variable for the other type of castle will get + 1, still an improvement
hugomanipoud2
2025-05-23 13:11:11 +0200
a37a1a8d76Maybe last commit, i will try to allow castling with undolastmove
hugomanipoud2
2025-05-23 12:40:43 +0200
9b5e116e42As no one really does and undoes the same move twice in a row, id say that undolast move is finished at 99%, this might be the last commit before deadline, ill check if everything works
hugomanipoud2
2025-05-23 12:35:22 +0200
29935b84dcundolast move works unless we do a move, undo it, redo the same again, and undo it once again, it will give an incorrect state of the board, i try debugging it with hashmaps prints, the hasmaps updates correctly, the arraylist is emptied before adding the new pieces, idk what doesnt work, here is the code with the debugging prints
hugomanipoud2
2025-05-23 12:32:37 +0200
48a3f7468dstill buggy but now state comes back to normal at turn 0
hugomanipoud2
2025-05-23 11:49:01 +0200
dada9a54cfkind of works but bugged (a lot)
hugomanipoud2
2025-05-23 11:28:54 +0200
11ba0933c3works but i cant place pieces after
hugomanipoud2
2025-05-23 11:10:54 +0200
a0d4ae6634added docstrings and hashmap that should save state of board each turn
hugomanipoud2
2025-05-23 11:05:52 +0200
7fe7f6c17etrying to implement undolastmove with hashmaps, they work like dictionnaries in python, the key will be turnNb and the associated value will be the arraylist associated
hugomanipoud2
2025-05-23 10:50:59 +0200
f4cf1e6904bug de parenthese avec short castle black, rectifié et marche
hugomanipoud2
2025-05-23 10:32:17 +0200
f3b9526521tostring now has a flag variable and is weel readable thanks to lines skipped
hugomanipoud2
2025-05-23 10:11:00 +0200
5e9ee6d35btoString updates each turnnb
hugomanipoud2
2025-05-23 09:59:18 +0200
1395927d94missing queen in last commit, now with all pieces
hugomanipoud2
2025-05-22 21:32:07 +0200
248fdbda92Castling is fully functional, i needed to split long and short, idk it works so thats a win
hugomanipoud2
2025-05-22 21:27:00 +0200
ee44342e4fshort castle works but not long
hugomanipoud2
2025-05-22 21:07:57 +0200
925681e178short castle done and working, finishing long castle
hugomanipoud2
2025-05-22 20:52:55 +0200
57d39fff7dnow the game only allow selection of pieces if its their turn
hugomanipoud2
2025-05-22 17:13:29 +0200
61f1b5e83adebugging turnNb, now works correctly
hugomanipoud2
2025-05-22 17:05:45 +0200
36cdfd1230all pieces move correctly according to chess rules
hugomanipoud2
2025-05-22 16:20:27 +0200
9e9e53c8c3pawn almost finished need some ore work
hugomanipoud2
2025-05-22 16:10:23 +0200
ac2a23e9a9pawns cannot go further if a piece is in front of them regardless of color
hugomanipoud2
2025-05-22 15:42:42 +0200
95ace3afe1implementation of is first pawn move to make the method comparable to others
hugomanipoud2
2025-05-22 15:36:42 +0200
40bffdbab7creation of isPAwnMoveValid, implementation of the logic found to black pawn tooo ishighlighted is now clean
hugomanipoud2
2025-05-22 15:15:42 +0200
5c27832805working on pawn movements, removed some spaghetti using the K variable used on other movement methods
hugomanipoud2
2025-05-22 14:58:28 +0200
189c7cb218new method checkColor implemented, code is less spaghetti for king move and knight move
hugomanipoud2
2025-05-21 19:52:20 +0200
87aaad73e0just 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
hugomanipoud2
2025-05-21 19:35:21 +0200
1dd328c408king finished, next are the pawns eating movement
hugomanipoud2
2025-05-21 19:29:55 +0200
6787c0eae2it finnaly works, need to check board getPiece(x,y) instead of selectedXY because only 1 case is concerned, knight an king soon ok
hugomanipoud2
2025-05-21 19:21:57 +0200
759930016bi dont even know if thats progress
hugomanipoud2
2025-05-21 18:42:39 +0200
4ab757eec9still trying for knight
hugomanipoud2
2025-05-21 18:20:43 +0200
9c740ee1f0advancement on knight but still doesnt work
hugomanipoud2
2025-05-21 18:06:24 +0200
7526532ea4creation of framework of knightMoves, will add the conditions to not be able to be on cases that are white
hugomanipoud2
2025-05-21 17:51:31 +0200
7b01772895as the moovepool of the queen is one of a rook and bishop combined, an or operator does the trick ! QUeen finished
hugomanipoud2
2025-05-21 17:33:30 +0200
b11802b832arrangement of isHighlighted, the bishop possible movment are now in the class move, where it should be, the isHighlighted method is more readable
hugomanipoud2
2025-05-21 17:16:26 +0200
8dc6c67272added docstring to explain the ishighlighted method
hugomanipoud2
2025-05-21 14:40:16 +0200
f3be5c6f6cthe code is so spaghetti but it WORKS, need to add docstrings and finish all pieces
hugomanipoud2
2025-05-21 14:05:06 +0200
e99013d05estill doesnt work but its progress
hugomanipoud2
2025-05-21 13:40:36 +0200
3388df84c8tried adding a condition on if the color is different to add +1 to K in this very direction, doesnt work at the moment
hugomanipoud2
2025-05-21 13:17:41 +0200
5e3c50adc8added 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
hugomanipoud2
2025-05-21 13:11:23 +0200
4a42f94ce8trying to implement correct movement to isHighlighted on the bishop , works weirdly, more work requiered
hugomanipoud2
2025-05-21 12:52:54 +0200
59c9394a93pawns now can go up 2 cases IFF they never moved
hugomanipoud2
2025-05-21 12:13:14 +0200
8bcd0e2b14knew that with getPieces with x and y for input, it could light up some cases with specific pieces, trying to implement that
hugomanipoud2
2025-05-21 11:29:38 +0200
981a4ece1apieces can now only go to highlighted cases, im litteraly a genius
hugomanipoud2
2025-05-21 11:12:40 +0200
ab4e2b2d32remove of yCord variable, pawn promotion works !
hugomanipoud2
2025-05-21 11:00:26 +0200
32f43bed0dforgotr to put Get y, now works but 1 move after, need to change to ToY instead
hugomanipoud2
2025-05-21 10:57:42 +0200
a0573a5ef8pawn promotion for white pawns progress, doesnt work
hugomanipoud2
2025-05-21 10:55:21 +0200
3e610d6fbachanged name of setSelectXY to isAPieceThere, working on pawn promotion
hugomanipoud2
2025-05-21 10:47:21 +0200
f14ed809e5removing isHiglighted called in user touch
hugomanipoud2
2025-05-20 19:12:25 +0200
66a94a17cfadded queen and rook
hugomanipoud2
2025-05-20 17:02:13 +0200
f8461a35f2added bishop to ishighlighted
hugomanipoud2
2025-05-20 16:58:10 +0200
28e5ec34afstill doesnt work idk
hugomanipoud2
2025-05-20 16:17:59 +0200
37b2bb2a2ffixed but doesnt higlight if no piece is in the way
hugomanipoud2
2025-05-20 15:31:36 +0200
8a67fc5affadded 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
hugomanipoud2
2025-05-20 15:18:59 +0200
7ab2b45919Ts 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
hugomanipoud2
2025-05-20 15:00:33 +0200
817cf0511ctrying things, kind of doesnt work but still progress
hugomanipoud2
2025-05-20 14:56:49 +0200
3164fcde7calmost same as isSelected, understanding that i need to playwith coordinates in if statements
hugomanipoud2
2025-05-20 14:38:40 +0200
2f327e8af7trying working with isHiglighted
hugomanipoud2
2025-05-20 14:29:33 +0200
4087571352implementation of movePiece and needPieceDeletion to Move class !
hugomanipoud2
2025-05-20 10:30:14 +0200
dbe928ce78added a break statement to needpieceDeletion and everything works !
hugomanipoud2
2025-05-19 17:19:10 +0200
8f5a17fc1aneedPiecedeletion implemented, it suppress the piece but doesnt move the moving piece to the desired place
hugomanipoud2
2025-05-19 17:08:31 +0200
63518d092eworking on movePiece to remove pieces, might want to create another method
hugomanipoud2
2025-05-19 16:39:49 +0200
be812038d3fixed the issue, setSelected had its if statement compparing selY with X instead of Y, due to copy paste the line elsewhere and not verifying
hugomanipoud2
2025-05-19 15:10:26 +0200
0a8cd17dc6usertouch works for the 0,1 and the 6,7 collumns ? idek
hugomanipoud2
2025-05-19 14:16:44 +0200
b821a42571clean board now reset turnNb, advancements on usertouch, the turn counter now works sometimes, the pieces dont move, idk
hugomanipoud2
2025-05-19 13:11:14 +0200
651ef9ef43added dockstrings explaining yuesterday's work
hugomanipoud2
2025-05-19 12:47:44 +0200
0a2d60c62eimplementation of movepiece, usertouch advancement and verification of isturn white and turn nb, OK
hugomanipoud2
2025-05-18 21:13:19 +0200
4adb78abfccorrection isselected now not selecting all pieces
hugomanipoud2
2025-05-18 20:51:46 +0200
c87dfd94b5isSelected finished, working on usertouch
hugomanipoud2
2025-05-18 19:58:42 +0200
a4250943d4isturn white done
hugomanipoud2
2025-05-18 19:32:48 +0200
f7a946b576functional to string method !
hugomanipoud2
2025-05-14 16:48:34 +0200
e44c7ad881Saving progress for toString, does not work
hugomanipoud2
2025-05-14 16:31:02 +0200
164481ca87pieces are appearing !! coordinate changes (from 1 to 8 to 0, 7. it was an evidence but i did thought about it before)
hugomanipoud2
2025-05-14 16:01:03 +0200
665e011dceconstructor for getPieces as i have no idea why it is in the method, pieces.clear
hugomanipoud2
2025-05-14 15:39:35 +0200
13c3faafe4populate board finished ? idk it doesnt work, maybe with setpiece
hugomanipoud2
2025-05-12 16:08:10 +0200
d9622cdf16last commit of day
hugomanipoud2
2025-05-09 11:48:47 +0200
497b0a7a0djsp mais je commit
hugomanipoud2
2025-05-09 11:04:35 +0200
8225151d90adding indexes to pieces to create disparate objects
hugomanipoud2
2025-05-09 10:17:45 +0200