smack42 / DriftingDroids

DriftingDroids - yet another Ricochet Robots solver program
https://github.com/smack42/DriftingDroids/wiki
GNU General Public License v3.0
41 stars 12 forks source link

Solver finds impossible solution #17

Closed rubo77 closed 4 years ago

rubo77 commented 5 years ago

On this puzzle roboyard thinks it finds a solution with 12: ry

but when you click on the solve button, it gets stuck after two moves

signal-2019-07-03-110045

rubo77 commented 5 years ago

Would it be easy to implement the export function of drifting droids In roboyard?

Then we could more easily transfer the game board into drifting droids to check if the error is in the solver

smack42 commented 5 years ago

I've copied the game state from your screenshot into DriftingDroids:

!DriftingDroids_game!F1586A4C!AAAEL3ja5ZLdDYAgDIT7JcQXH3RGx3AHJ3QZiz8
JHCAD0OQa+nOUCzUzWyOCu8WxOzbHSZgnxKxvvIgeySdV/shISzqYJ6YzvIhaFCXUyjTq
lH0yU59GJr/Cf+ST8fn0UlKySK9GxNHRS7NzkP+mtvADL8CbOu6Tey6k+gPJ!

It works correctly and finds several 14-moves solutions.

smack42 commented 5 years ago

The code that loads and saves the game state using this text format is implemented in:

class Board
public static Board createBoardGameDump(final String dump)
public String getGameDump()