D27336: Fix sometimes two moves being counted as one

Fabian Kosmale <[email protected]>
Newsgroups gmane.comp.kde.devel.games
Message-ID <[email protected]>
fabiank added a comment.


  So I think this depends in part on whether we want to have an atomic undo/redo for automatic moves. With your change, every single move in the auto move will be put on the undo stack. The behaviour before was that they were all composed into one "big" move.
  If we want to keep the existing behaviour,  we would need to modify DealerScene::moveCount() to changes.size() of the undo stack elements and m_currentState into account.
  
  I'm also not sure if auto moves count in all games. So if we decide to keep the current undo behaviour, maybe moveCount should also be virtual, with most classes using the existing implementation, and Freecell doing some special accounting.

REPOSITORY
  R410 KPatience

REVISION DETAIL
  https://phabricator.kde.org/D27336

To: aacid, #kde_games
Cc: fabiank, piotrkakol, shlomif, yurchor, kde-games-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.