rabbit-escape icon indicating copy to clipboard operation
rabbit-escape copied to clipboard

Bug: If I type "exit" after entering a level (in text mode) nothing happens

Open andybalaam opened this issue 9 years ago • 11 comments

The second time I type exit, it exits as expected.

I only see this problem if "exit" is the first thing I type after seeing the level.

andybalaam avatar Nov 26 '15 05:11 andybalaam

I think you need to type exit twice, even if exit is not the first thing you type.

colonelfazackerley avatar Nov 27 '15 13:11 colonelfazackerley

Weird.

andybalaam avatar Nov 27 '15 23:11 andybalaam

Must have been caused by my code that lets you step past the end in certain circumstances.

andybalaam avatar Nov 27 '15 23:11 andybalaam

(which I hate)

andybalaam avatar Nov 27 '15 23:11 andybalaam

If I remember correctly, exit followed by any command exits. I usually type exit [enter] [enter] to do the equivalent of explode all.

Side note, is exit the equivalent of explode all?

tttppp avatar Nov 28 '15 07:11 tttppp

InputHandler line 47 suggests that is the intention.

colonelfazackerley avatar Nov 28 '15 08:11 colonelfazackerley

just tried on med 18. I got the one required rabbit out the exit. exit[enter][enter] This tells me I won, which is good. However, the solution reported back is :solution.1=bash;(15,4);block;(17,4);bridge;14;(16,4);21 which will not work, as there is nothing to kill the blocker. we need an explodeall or exit command or something.

colonelfazackerley avatar Nov 28 '15 08:11 colonelfazackerley

Yes, good points.

Side note, is exit the equivalent of explode all?

I implemented it a bit like that for convenience, but it strikes me that actually it should be.

I think we should support explodeall, with exit as an alias. I also think the text UI should step until the level is finished (which should be 1 step, but somehow sometimes seems to be 2?) after you've typed it.

andybalaam avatar Nov 29 '15 06:11 andybalaam

I think ExpandAbbreviations could help with expanding 'exit' to 'explodeall'.

colonelfazackerley avatar Nov 29 '15 07:11 colonelfazackerley

Me too.

andybalaam avatar Nov 29 '15 07:11 andybalaam

(And I'm happy with exit only being available in command line mode, not an official solution command.)

andybalaam avatar Nov 29 '15 07:11 andybalaam