尋常でないもふもふ

a software engineer blog

2015-07-15から1日間の記事一覧

自然対数を使った戦闘力のグループ化

なんかちょうどいい感じに分布される const _ = require('lodash'); // グループ化 const result = {}; let power = 0; _.times(600, function() { const group = Math.max(80, (Math.log(power) * 2 / Math.log(1.2)) | 0); if (result[group]) { result[gr…