CorruptedArk / open-chaos-chess

Open Chaos Chess is a free and open source version of Chaos Chess, stripped of Google Play Services.
GNU General Public License v3.0
50 stars 7 forks source link

Doubled piece #46

Closed egorguslyan closed 3 years ago

egorguslyan commented 3 years ago

Description If computer moves first and player spams New Game button, piece can copy yourself and computer makes a lot of moves.

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings and let computer move first.
  2. Spam New Game button.
  3. See crash or game bug.

Unexpected behavior Player don't need to capture all computer pieces to win. Screenshot_20210605-134135_Open_Chaos_Chess

Additional context Maybe it's better to place somewhere "Let computer start game" button instead new setting?

CorruptedArk commented 3 years ago

Good catch, and I believe I know how to fix this issue already. I should've made the player wait for the computer to finish moving before starting a new game.

egorguslyan commented 3 years ago

But this bug is pretty cool. As described in #15 computer gets extra moves and pieces.

CorruptedArk commented 3 years ago

That's true, it is cool, but I can't leave it in because of performance issues and whatnot. Also, the smart computer mode you added is already very difficult to beat. I don't think I've been able to beat it once