brunoscopelliti / poker-holdem-engine

Texas hold'em poker engine
MIT License
110 stars 50 forks source link

TOURNAMENT:completed not rising #8

Closed leoni4 closed 5 years ago

leoni4 commented 5 years ago

Hi, don't know what am I doing wrong but...

const engine = new Tournament(tournamentID, TPlayers, tournamentSettings);

engine.on('TOURNAMENT:completed', function () {
    console.log(chalk.bold.gray('Tournament completed.'));
});

engine.on('TOURNAMENT:updated', function (data, done) {
    done();
});

engine.start();

TOURNAMENT:completed - doesn't rising when the last game was played

not shure mb I use it incorrectly

brunoscopelliti commented 5 years ago

Thanks for the report.

brunoscopelliti commented 5 years ago

I've fixed the issue, and updated the demo.

brunoscopelliti commented 5 years ago

Version 3.0.3 should work fine. Thanks @leoni4