범인찾기 C5: OP.GG 실제 OP스코어 찾기 · 지시문 v1.2 · 화면에 전적 사이트 점수

- site/server/src/opgg.ts: OP.GG 공식 MCP 로 이 경기를 찾아 실제 OP스코어를 붙인다 (롤: 시작 시각 · 길이로 경기 찾고 10명 op_score · 순위, 발로란트: 경기 UUID 로 선수마다 opScore). 내전 · 실패면 기록 점수만으로 계속
- 진행 단계에 'OP.GG 점수 찾는 중', 결과 meta.opgg (찾음 / 못 찾은 이유), CULPRIT_OPGG=0 이면 끔
- 지시문 v1.2: 평점은 전적 사이트 점수(OP.GG 실제 > 기록 점수)에서 출발해 승부처 · 역할 · 경제 · 소통으로 더하고 뺀다, 2점 넘게 다르면 근거, 범인 후보는 점수 낮은 사람부터 · 최하위가 아니면 이유
- 화면: 참가자 목록에 기록 점수 · MVP/ACE, 결과에 기록 점수 · 팀 순위 · OP.GG 점수 · 강점/약점 · 롤 15분 라인전
- 기록이 깨진 경기는 점수를 내지 않는다

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-15 15:36:07 +09:00
parent f8916829e1
commit dc546951b5
10 changed files with 409 additions and 15 deletions

View File

@@ -102,6 +102,8 @@ function finish(players: MatchPlayer[], scores: number[], parts: RatingPart[][],
const out = new Map<string, PlayerRating>();
const rounded = scores.map((s) => Math.round(s * 10) / 10);
const order = rounded.map((s, i) => ({ s, i })).sort((a, b) => b.s - a.s);
// 기록이 깨진 경기(값 없는 선수)는 점수를 내지 않는다
if (!rounded.every(Number.isFinite)) return out;
players.forEach((p, i) => {
const mates = players.map((q, j) => ({ q, j })).filter(({ q }) => q.team === p.team);
const teamOrder = [...mates].sort((a, b) => rounded[b.j] - rounded[a.j]);
@@ -134,9 +136,9 @@ export function rateValorant(players: MatchPlayer[], rounds: MatchRound[]): Map<
kast: (p.stats?.kastRounds ?? 0) / n,
acs: (p.score ?? 0) / n,
ddd: ((p.stats?.damage ?? 0) - (p.stats?.damageTaken ?? 0)) / n,
kpr: p.kills / n,
dpr: p.deaths / n,
apr: p.assists / n,
kpr: (p.kills ?? 0) / n,
dpr: (p.deaths ?? 0) / n,
apr: (p.assists ?? 0) / n,
};
});
const mean = meanOf(feats);