Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • KBlocks KBlocks
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GamesGames
  • KBlocksKBlocks
  • Merge requests
  • !5

Display last move instantaneously

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Julian Helfferich requested to merge helfferich/kblocks:display_last_move_instantaneously into master Jan 24, 2021
  • Overview 3
  • Commits 16
  • Pipelines 1
  • Changes 42

This is the last merge request to fix bugs 407244 and 380462. In merge request !4 (merged) i said, there would be two more patches coming, but I decided to put both into a single merge request. Otherwise, either the first would have been incomplete (several warnings in test suite remaining) or the second merge request would have been tiny. If I should rather split this merge request into smaller pieces, please let me know.

The merge request finalizes the bug fix. After this commit is merged, when a game is over:

  1. The last piece is moved to the correct location.
  2. The piece is moved instantaneously.
  3. The new piece which could no longer be placed, causing the game to be lost, is also drawn.

It should look like this:

kblock_move_last_piece_on_game_over

Additional work is done to add tests. This required some minor refactoring.

I have also tested this manually:

  1. Playing several single-player games, switching difficulty and themes.
  2. Playing against the AI - winning and losing games.

BUG: 407244

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: display_last_move_instantaneously