Skip to content
This repository was archived by the owner on Feb 3, 2019. It is now read-only.
This repository was archived by the owner on Feb 3, 2019. It is now read-only.

Score algorithm enhancement #6

@Doom4535

Description

@Doom4535

Currently every time a child board is scored the Manhattan distance of each tile is computed; however, because we are only swapping one tile and the blank it is possible to limit this to just a score update. We could track the score of the parent and add or subtract the difference of the one swap to get the score of the child (this would scale exponentially, so for really large puzzles we could significantly reduce computation time).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions