Created attachment 134 [details] Possible position generated for cannon is not as expected - Steps to reproduce 1. start the game 2. player selects RC/BC to move - Expected result The possible moves for RC at h2 [i2,g2,f2,e2,d2,c2,h1,h3,h4,h5,h6,h9] - Actual result The possible moves for RC at h2 [i2,g2,f2,e2,d2,c2,h1,h0,h3,h4,h5,h6]
Updated function private void validationForCannonOrRook(Chess toMove) in class ChessBoard to solve the buog: 1) Correct the condition of while loop for validation of bottom positions 2) Change variable numOfChess to correct line
Fixed by Tim