# 제출자(@s) 로 실행됨 — answer.title 및 alias 들과 비교 # 매치되면 @s answer = 1 → check_answer 가 정답처리 흐름으로 진입 # 매치 안되면 @s answer = 2 → check_answer 가 reset 처리 (1회 비교 후 초기화) # 1) 제목과 비교 data modify storage mq:tmp judge.answer set from storage mq:main answer.title function mq:answer/macro/match with storage mq:tmp judge # 2) 제목 매치 실패 시 alias 들과 순차 비교 (조기 종료) execute unless score @s answer matches 1 run data modify storage mq:tmp aliases set from storage mq:main answer.alias execute unless score @s answer matches 1 run function mq:answer/iter_aliases # 3) 끝까지 매치 실패면 오답 처리 (check_answer 가 reset) execute unless score @s answer matches 1 run scoreboard players set @s answer 2 # 4) 처리 완료 — 이 제출자의 submit_seq 정리 (다음 큐 항목과 혼동 방지) scoreboard players reset @s submit_seq