Porting a prolog game to the Web App Platform - some questions...
ProfVersaggi <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Greetings Everyone, I'm (for the simple experience of it all) attempting to port the classic Nanny Search Prolog game (Amzi!) over the Web Application framework of Swi-Prolog and have run into a few walls. I've not new to Prolog (had it in college and grad school), took Anne Ogborn's tutorial on Web Applications in SWI-Prolog recently, and have gotten remedial apps up locally and on my unix server. I'm having trouble wrapping my head around using the framework to house the game's interplay in a web page while maintaining the integrity of the game, since the game is inherently a command line console experience. I envision using a single web page interface with a persistent form submission for the commands which will be captured in local variables and fed to the logic of the program. I also envision having the program as it exists swap out it's existing write predicates for HTML write predicates and feed their output streams directly to the web page. The walls I'm running into is not how to set up an initial web interface using, but how to get the intermediate web output properly captured and displayed on an existing web page. At the moment everything overwrites everything else, instead of add it to the page. I've experimented with frames and iFrames but the framework doesn't seem to tolerate them well. I'm also curious as to how to properly capture POST variables and inject them into the running program. Any pointers anyone has would be greatly appreciated .... :-) -- View this message in context: http://swi-prolog.996271.n3.nabble.com/Porting-a-prolog-game-to-the-Web-App-Platform-some-questions-tp14098.html Sent from the SWI Prolog mailing list archive at Nabble.com.