전략 상세설명 수정

This commit is contained in:
Macbook
2026-06-16 21:41:26 +09:00
parent 822d99f6b0
commit 074b4fd03a
@@ -227,10 +227,8 @@ function describeNode(
if (depth === 0 && children.length > 1) {
lines.push('다음 조건을 모두 동시에 만족해야 합니다.');
}
children.forEach((child, i) => {
const sub = describeNode(child, signalType, def, depth + 1);
if (children.length > 1) lines.push(`${i + 1})`);
lines.push(...sub);
children.forEach(child => {
lines.push(...describeNode(child, signalType, def, depth + 1));
});
return lines;
}
@@ -242,10 +240,8 @@ function describeNode(
if (depth === 0 && children.length > 1) {
lines.push('다음 조건 중 하나라도 만족하면 됩니다.');
}
children.forEach((child, i) => {
const sub = describeNode(child, signalType, def, depth + 1);
if (children.length > 1) lines.push(`${i + 1})`);
lines.push(...sub);
children.forEach(child => {
lines.push(...describeNode(child, signalType, def, depth + 1));
});
return lines;
}