akinator

1.0.1 • Public • Published

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
});

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i akinator

    Weekly Downloads

    8

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • snek