This commit is contained in:
shenjack 2024-05-10 20:29:10 +08:00
parent 769fd4b7cd
commit 5a6e38274d
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ function wrap_any(names, round) {
else if ('win_count' in result) { else if ('win_count' in result) {
win_rate_1 = result.win_count * 100 / round; win_rate_1 = result.win_count * 100 / round;
win_rate_str = win_rate_1.toFixed(4); win_rate_str = win_rate_1.toFixed(4);
output_str_1 = "\u6700\u7EC8\u80DC\u7387:|".concat(win_rate_str, "|(").concat(round, "\u8F6E)"); output_str_1 = "\u6700\u7EC8\u80DC\u7387:|".concat(win_rate_str, "%|(").concat(round, "\u8F6E)");
// 每 500 轮, 输出一次 // 每 500 轮, 输出一次
if (round > 500) { if (round > 500) {
output_datas_1 = []; output_datas_1 = [];

View File

@ -148,7 +148,7 @@ async function wrap_any(names: string, round: number): Promise<string> {
// 胜率结果 // 胜率结果
const win_rate = result.win_count * 100 / round; const win_rate = result.win_count * 100 / round;
let win_rate_str = win_rate.toFixed(4); let win_rate_str = win_rate.toFixed(4);
let output_str = `最终胜率:|${win_rate_str}|(${round}轮)`; let output_str = `最终胜率:|${win_rate_str}%|(${round}轮)`;
// 每 500 轮, 输出一次 // 每 500 轮, 输出一次
if (round > 500) { if (round > 500) {
// 把所有要找的数据拿出来 // 把所有要找的数据拿出来