node-frotz
v0.5.0
Published
Frotz interface for node
Downloads
28
Readme
node-frotz
Node integration for frotz
const frotz=require('node-frotz');
var dint = new frotz.DFrotzInterface('./ifroot/dfrotz','./ifroot/ZORK1.DAT',"./ifroot/zk1.sav",frotz.ZorkFilter);
dint.iteration("look",(error,gameoutput)=>{
if(error)
{
console.log(error);
}
else
{
console.log(gameoutput);
}
process.exit(0);
});
Installation
This module requires the dfrotz binary. Please refer to https://github.com/DavidGriffith/frotz for instruction.
$ npm install node-frotz