Skip to content

Cannot solve mazes with wrap x or wrap xy, wrap y works fine #5

Description

@MtnViewJohn

Theseus can solve mazes with no wrapping or with wrap y but it hangs when trying to solve mazes with wrap x or wrap xy. The astar solver cannot solve with wrap y.

john@paravmubuntu16_04:~$ theseus -w 10 -H 10 --wrap x -f png -o maze
maze written to maze.png
john@paravmubuntu16_04:~$ theseus -w 10 -H 10 --wrap x -f png -o maze -V
^C/var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/solvers/base.rb:29:in `solved?': Interrupt
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/solvers/base.rb:43:in `solve'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/formatters/png.rb:79:in `initialize'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/formatters/png/orthogonal.rb:16:in `initialize'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/maze.rb:653:in `new'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/maze.rb:653:in `to'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/cli.rb:157:in `block in run_static'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/cli.rb:157:in `open'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/cli.rb:157:in `run_static'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/cli.rb:70:in `run'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/lib/theseus/cli.rb:25:in `run'
	from /var/lib/gems/2.3.0/gems/theseus-1.1.0/bin/theseus:5:in `<top (required)>'
	from /usr/local/bin/theseus:23:in `load'
	from /usr/local/bin/theseus:23:in `<main>'

john@paravmubuntu16_04:~$ theseus -w 10 -H 10 --wrap y -f png -o maze -V
maze written to maze.png
john@paravmubuntu16_04:~$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions