Bug 335332 - starting a new game during AI's turn may allow AI two first moves
Summary: starting a new game during AI's turn may allow AI two first moves
Status: RESOLVED FIXED
Alias: None
Product: KSquares
Classification: Applications
Component: general (show other bugs)
Version: 0.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Matt Williams
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-25 10:35 UTC by Martin Walch
Modified: 2018-11-11 11:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Walch 2014-05-25 10:35:50 UTC
When starting a new game while the AI player has not finished, it may play the first two moves instead of letting the human player do the first move.

to reproduce:
1. start a new game of KSquares with the human player going first
2. play a while, but avoid filling many squares
3. allow the AI player to fill many squares in a row and quickly do the next step
4. start a new game before AI has finished its turn

Now in the new game, it may happen that the AI makes the first two moves.
Comment 1 Andrew Crouthamel 2018-11-11 04:25:51 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Martin Walch 2018-11-11 10:15:37 UTC
Still happens with KSquares 0.6 from KDE Application 18.04.3.
Comment 3 Albert Astals Cid 2018-11-11 11:37:06 UTC
Git commit 0e881b9701b7f20f4b60063db69954e27c6b1235 by Albert Astals Cid.
Committed on 11/11/2018 at 11:36.
Pushed by aacid into branch 'Applications/18.12'.

Fix AI playing out of turn when restarting game while AI is playing

M  +5    -0    src/ksquareswindow.cpp

https://commits.kde.org/ksquares/0e881b9701b7f20f4b60063db69954e27c6b1235