mlsdpk / alphazero-checkers-pygame

3 stars 0 forks source link

Add Capture mode #10

Closed aungpaing98 closed 3 years ago

aungpaing98 commented 3 years ago

6 Code implementation done. Further code optimisation can be done.

myogh commented 3 years ago

The valid move of a piece should only be one instead of two when there's an opponent piece to be eaten. checkers-correction

myogh commented 3 years ago

Great work @aungpaing98 👏👏 Capturing the opponent piece works perfectly as expected.

Side Note: We should also consider another issue here, in which the other pieces are free to move instead of being locked when an opponent piece needs to be captured immediately.

As in the picture, the other white pieces shouldn't be allowed to move except the one with the red circle, which needs to capture the opponent piece. I think this feature would be highly related to issue #7

check-correction

Awthura commented 3 years ago

Working smoothly for now. As @aungmcs mentioned, we need to consider negating all the other available moves in capture mode. Case for multiple capture options is also working. image

mlsdpk commented 3 years ago

Yes, the issue @aungmcs mentioned can be integrated after solving the issue #7, how do you guys think about this PR #10? If everything finishes, I can close and merge it. @aungpaing98 do you have any more features to be updated for this #10?

aungpaing98 commented 3 years ago

Should we add multiple capture mode before closing the issue. Any ideas for multiple capture mode? The main problem is to make code short.