Commit Graph

  • 7d75f02e26 final commit, castling can handle undo master hugomanipoud2 2025-05-23 13:48:34 +0200
  • c7d7991a16 castling 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
  • a37a1a8d76 Maybe last commit, i will try to allow castling with undolastmove hugomanipoud2 2025-05-23 12:40:43 +0200
  • 9b5e116e42 As 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
  • 29935b84dc undolast 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
  • 48a3f7468d still buggy but now state comes back to normal at turn 0 hugomanipoud2 2025-05-23 11:49:01 +0200
  • dada9a54cf kind of works but bugged (a lot) hugomanipoud2 2025-05-23 11:28:54 +0200
  • 11ba0933c3 works but i cant place pieces after hugomanipoud2 2025-05-23 11:10:54 +0200
  • a0d4ae6634 added docstrings and hashmap that should save state of board each turn hugomanipoud2 2025-05-23 11:05:52 +0200
  • 7fe7f6c17e trying 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
  • f4cf1e6904 bug de parenthese avec short castle black, rectifié et marche hugomanipoud2 2025-05-23 10:32:17 +0200
  • f3b9526521 tostring now has a flag variable and is weel readable thanks to lines skipped hugomanipoud2 2025-05-23 10:11:00 +0200
  • 5e9ee6d35b toString updates each turnnb hugomanipoud2 2025-05-23 09:59:18 +0200
  • 1395927d94 missing queen in last commit, now with all pieces hugomanipoud2 2025-05-22 21:32:07 +0200
  • 248fdbda92 Castling 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
  • ee44342e4f short castle works but not long hugomanipoud2 2025-05-22 21:07:57 +0200
  • 925681e178 short castle done and working, finishing long castle hugomanipoud2 2025-05-22 20:52:55 +0200
  • 2fa708862d few docstrings hugomanipoud2 2025-05-22 20:28:57 +0200
  • 18c659e93d set castling variable done hugomanipoud2 2025-05-22 20:19:39 +0200
  • 418d32a7d3 bruh i solved castling without using IA im so hyped rn hugomanipoud2 2025-05-22 20:13:07 +0200
  • 425b2696cd maybe almost finished but doesnt work hugomanipoud2 2025-05-22 20:01:35 +0200
  • 8ded4954b8 if king or rook moves the castling doesnt work ! hugomanipoud2 2025-05-22 19:43:17 +0200
  • 3fb0209a63 all conditions for castling are ok for white king hugomanipoud2 2025-05-22 19:26:52 +0200
  • d37206f77c trying to setup shortcastling hugomanipoud2 2025-05-22 19:08:26 +0200
  • 63c51f3d56 input not correct, now works hugomanipoud2 2025-05-22 17:37:42 +0200
  • 99c1f81fee created specialMOves class, pawnpromotion doesnt work idk hugomanipoud2 2025-05-22 17:36:30 +0200
  • 57d39fff7d now the game only allow selection of pieces if its their turn hugomanipoud2 2025-05-22 17:13:29 +0200
  • 61f1b5e83a debugging turnNb, now works correctly hugomanipoud2 2025-05-22 17:05:45 +0200
  • 36cdfd1230 all pieces move correctly according to chess rules hugomanipoud2 2025-05-22 16:20:27 +0200
  • 9e9e53c8c3 pawn almost finished need some ore work hugomanipoud2 2025-05-22 16:10:23 +0200
  • ac2a23e9a9 pawns cannot go further if a piece is in front of them regardless of color hugomanipoud2 2025-05-22 15:42:42 +0200
  • 95ace3afe1 implementation of is first pawn move to make the method comparable to others hugomanipoud2 2025-05-22 15:36:42 +0200
  • 40bffdbab7 creation of isPAwnMoveValid, implementation of the logic found to black pawn tooo ishighlighted is now clean hugomanipoud2 2025-05-22 15:15:42 +0200
  • 5c27832805 working on pawn movements, removed some spaghetti using the K variable used on other movement methods hugomanipoud2 2025-05-22 14:58:28 +0200
  • 189c7cb218 new method checkColor implemented, code is less spaghetti for king move and knight move hugomanipoud2 2025-05-21 19:52:20 +0200
  • 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 hugomanipoud2 2025-05-21 19:35:21 +0200
  • 1dd328c408 king finished, next are the pawns eating movement hugomanipoud2 2025-05-21 19:29:55 +0200
  • a8c96922a5 knight finished hugomanipoud2 2025-05-21 19:25:22 +0200
  • 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 hugomanipoud2 2025-05-21 19:21:57 +0200
  • 759930016b i dont even know if thats progress hugomanipoud2 2025-05-21 18:42:39 +0200
  • 4ab757eec9 still trying for knight hugomanipoud2 2025-05-21 18:20:43 +0200
  • 9c740ee1f0 advancement on knight but still doesnt work hugomanipoud2 2025-05-21 18:06:24 +0200
  • 7526532ea4 creation 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
  • 7b01772895 as 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
  • d62bdf7ad0 rook finished hugomanipoud2 2025-05-21 17:30:39 +0200
  • b11802b832 arrangement 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
  • 94858166b9 tostring essai d'amelioration hugomanipoud2 2025-05-21 16:38:16 +0200
  • a3159cc55e bishop done hugomanipoud2 2025-05-21 14:45:47 +0200
  • 8dc6c67272 added docstring to explain the ishighlighted method hugomanipoud2 2025-05-21 14:40:16 +0200
  • f3be5c6f6c the code is so spaghetti but it WORKS, need to add docstrings and finish all pieces hugomanipoud2 2025-05-21 14:05:06 +0200
  • e99013d05e still doesnt work but its progress hugomanipoud2 2025-05-21 13:40:36 +0200
  • 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 hugomanipoud2 2025-05-21 13:17:41 +0200
  • 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 hugomanipoud2 2025-05-21 13:11:23 +0200
  • 4a42f94ce8 trying to implement correct movement to isHighlighted on the bishop , works weirdly, more work requiered hugomanipoud2 2025-05-21 12:52:54 +0200
  • 59c9394a93 pawns now can go up 2 cases IFF they never moved hugomanipoud2 2025-05-21 12:13:14 +0200
  • 8bcd0e2b14 knew 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
  • 981a4ece1a pieces can now only go to highlighted cases, im litteraly a genius hugomanipoud2 2025-05-21 11:12:40 +0200
  • ab4e2b2d32 remove of yCord variable, pawn promotion works ! hugomanipoud2 2025-05-21 11:00:26 +0200
  • 32f43bed0d forgotr to put Get y, now works but 1 move after, need to change to ToY instead hugomanipoud2 2025-05-21 10:57:42 +0200
  • a0573a5ef8 pawn promotion for white pawns progress, doesnt work hugomanipoud2 2025-05-21 10:55:21 +0200
  • 3e610d6fba changed name of setSelectXY to isAPieceThere, working on pawn promotion hugomanipoud2 2025-05-21 10:47:21 +0200
  • f14ed809e5 removing isHiglighted called in user touch hugomanipoud2 2025-05-20 19:12:25 +0200
  • 75cfb15bfd isHighlighted finished ! hugomanipoud2 2025-05-20 17:17:31 +0200
  • 8d8f155fa0 added knight ishiglighted hugomanipoud2 2025-05-20 17:13:01 +0200
  • 66a94a17cf added queen and rook hugomanipoud2 2025-05-20 17:02:13 +0200
  • f8461a35f2 added bishop to ishighlighted hugomanipoud2 2025-05-20 16:58:10 +0200
  • 28e5ec34af still doesnt work idk hugomanipoud2 2025-05-20 16:17:59 +0200
  • 37b2bb2a2f fixed but doesnt higlight if no piece is in the way hugomanipoud2 2025-05-20 15:31:36 +0200
  • 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 hugomanipoud2 2025-05-20 15:18:59 +0200
  • 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 hugomanipoud2 2025-05-20 15:00:33 +0200
  • 817cf0511c trying things, kind of doesnt work but still progress hugomanipoud2 2025-05-20 14:56:49 +0200
  • 3164fcde7c almost same as isSelected, understanding that i need to playwith coordinates in if statements hugomanipoud2 2025-05-20 14:38:40 +0200
  • 2f327e8af7 trying working with isHiglighted hugomanipoud2 2025-05-20 14:29:33 +0200
  • 4087571352 implementation of movePiece and needPieceDeletion to Move class ! hugomanipoud2 2025-05-20 10:30:14 +0200
  • dbe928ce78 added a break statement to needpieceDeletion and everything works ! hugomanipoud2 2025-05-19 17:19:10 +0200
  • 8f5a17fc1a needPiecedeletion implemented, it suppress the piece but doesnt move the moving piece to the desired place hugomanipoud2 2025-05-19 17:08:31 +0200
  • 63518d092e working on movePiece to remove pieces, might want to create another method hugomanipoud2 2025-05-19 16:39:49 +0200
  • 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 hugomanipoud2 2025-05-19 15:10:26 +0200
  • 0a8cd17dc6 usertouch works for the 0,1 and the 6,7 collumns ? idek hugomanipoud2 2025-05-19 14:16:44 +0200
  • b821a42571 clean 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
  • 651ef9ef43 added dockstrings explaining yuesterday's work hugomanipoud2 2025-05-19 12:47:44 +0200
  • 0a2d60c62e implementation of movepiece, usertouch advancement and verification of isturn white and turn nb, OK hugomanipoud2 2025-05-18 21:13:19 +0200
  • 4adb78abfc correction isselected now not selecting all pieces hugomanipoud2 2025-05-18 20:51:46 +0200
  • c87dfd94b5 isSelected finished, working on usertouch hugomanipoud2 2025-05-18 19:58:42 +0200
  • a4250943d4 isturn white done hugomanipoud2 2025-05-18 19:32:48 +0200
  • faa41e63cd set piece done hugomanipoud2 2025-05-15 18:55:51 +0200
  • 6d5e762636 ToString finished hugomanipoud2 2025-05-15 15:51:08 +0200
  • f7a946b576 functional to string method ! hugomanipoud2 2025-05-14 16:48:34 +0200
  • e44c7ad881 Saving progress for toString, does not work hugomanipoud2 2025-05-14 16:31:02 +0200
  • 164481ca87 pieces 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
  • 665e011dce constructor for getPieces as i have no idea why it is in the method, pieces.clear hugomanipoud2 2025-05-14 15:39:35 +0200
  • 13c3faafe4 populate board finished ? idk it doesnt work, maybe with setpiece hugomanipoud2 2025-05-12 16:08:10 +0200
  • d9622cdf16 last commit of day hugomanipoud2 2025-05-09 11:48:47 +0200
  • 497b0a7a0d jsp mais je commit hugomanipoud2 2025-05-09 11:04:35 +0200
  • 8225151d90 adding indexes to pieces to create disparate objects hugomanipoud2 2025-05-09 10:17:45 +0200
  • b6d66394af iswhite method hugomanipoud2 2025-05-09 09:46:47 +0200
  • f01cc5d127 testcommitpiecetype hugomanipoud2 2025-05-09 09:39:43 +0200
  • e1c893cada piecetype done hugomanipoud2 2025-05-09 09:37:20 +0200
  • 242691796e piecetype work hugomanipoud2 2025-05-09 09:19:34 +0200
  • 4dc627050c small update with constructors hugomanipoud2 2025-05-09 08:16:03 +0200