[asterisk-users] want to set up text based "adventure" for asterisk

Jon Pounder jonp at inline.net
Thu Apr 23 15:58:06 CDT 2009


Eric Fort wrote:
> Anyone know where I could find a good beginning for using asterisk and 
> the text based game "adventure" together such that I could play from 
> the nearest phone?

google on collossal cave.
honestly its the absolute worst unreadable mess of code ever conceived 
by man or beast.

that said I made a web version of it that actually works
here is where you start - hack the "only semi unreadable" portion for 
save and load games so it does not cost you points to save and load.
then make a script that does this :
start game, load game, inject next command to game, trap output of that 
"move", save game again

every time the user does a command, run the script and then show/speak 
them the output.

yes its a kludge of the Nth order but at the end of the day it works, 
and you didn't even have to understand the garbage code that drives the 
thing.


let me know how it goes.



>
> Thanks,
>
> Eric
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list