akinator
v1.0.1
Published
provides evented api and a cli app
Downloads
48
Readme
akinator
provides evented api and a cli app
npm i -g akinator
to install akinator
which you can run at any time
import Akinator from 'akinator';
const akinator = new Akinator();
akinator.on('answer', () => {
// do something
});
akinator.on('guess', () => {
// something else
});
akinator.on('end', (win) => {
if (win) // akinator guessed correctly
});