in reply to Re^2: Wizard v1.2
in thread Wizardv1.1

Hmmm, looks like a bug :) For the deep recursion problem, I didn't really understand what happened, but I didn't care too much because it works fine anyway :)
BTW I'm surprised to see that there so few text-based adventure games on perlmonks, and I started working on it more seriously :)

Replies are listed 'Best First'.
Re^4: Wizard v1.2
by Roy Johnson (Monsignor) on May 09, 2005 at 20:51 UTC
    The deep recursion is due to, well, everything recursing. You have battle calling freedale, which calls battle, which calls toad, which calls....

    I've revamped the game quite a bit. I got rid of the recursion, in favor of (usually) redo. Freedale is like a main event loop, and everything else is called from there, and eventually returns to there. I introduced some randomness into how much gold you get, gave each zone a limited supply of monsters (and limited the types), got rid of the "you don't find any monsters" thing, added a couple of jokes, changed formatting, just bunches of stuff. Still, it's basically the same game.

      Wow, nice improvements :)

      update: However you forgot some \n here and there! ;)

      I just added that...