Skip to content
Myr

Improve bruteforce output

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent a1ca28b · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • tests:+3 added−1 removed

1 file+3 added−1 removed

modified:test/alphabet+3 added-1 removed
56 unmodified lines
57 worker.on('message', function (data) {58 if (data.finished) {59 finished += 160 if (finished === WORKERS) {61 print('100%')62 print('The best alphabet:')61 print('The best alphabet:\n' + chalk.bold.green(best.alphabet))63 print(chalk.bold.green(best.alphabet))64 resolve()65 }66 } else {67 if (data.size < best.size) {
18 unmodified lines