Client for playing 300 publicly available Sokoban puzzles on a computer or phone.

snapshot: moving a single crate around

Bugs I've hit so far:

  • if we're already at the desired side of the crate we don't need to move
  • don't forget to unwind intermediate moves between the pushes
  • undo requires a third square for the crate
  • undo requires a fourth square for where the player ends up at the end
    • we can't just get this at the end of the move, we have to compute the final square
  • switching x and y when indexing xx
  • can't directly use simple path-finding to move the player between crate pushes; it too needs to be aware of the crate id it's allowed to cross (since we don't mutate the level when planning)
  • stitching the complete list of steps out of moves and pushes
    • empty squares might not be empty X-( we need to make a copy of the level

It's not looking so elegant anymore..

Created by  akkartik  on March 13, 2024
BUPMQLGRZJFGYEY7DI7YV7V3URUE5HVT2AFQHQBG2GORLNSRW7VAC
Change contents