wordfs

A single player word game generator

Usage no npm install needed!

<script type="module">
  import wordfs from 'https://cdn.skypack.dev/wordfs';
</script>

README

Wordfs module Build Status

This is the C++ module for wordfs. This is in a separate branch - so that packaging for npm is possible in a simple manner.

Installation

  • Install node-gyp as sudo user. sudo npm install -g node-gyp
  • Compile the binary. node-gyp configure && node-gyp build.

Usage

var wordfs = require('./build/Release/wordfs.node').Wordfs; //require("wordfs").Wordfs; //if using via npm
var x = new wordfs();
console.log(x.question); // <String>
console.log(x.solution); // <Array>
console.log(x.answer); // <Function>

if(x.answer("wordfs"))
    console.log("Yay");
else
    console.log("Boo");