전쟁선포
2026년 10월 26일 09:30분
사무엘하 10장에서 암몬 왕이 다윗의 사신을 모욕하자 전쟁이 시작됩니다. 외교 프로토콜 위반이 전쟁을 일으킵니다. 나는 외교 요청 처리 결과에 따라 전쟁 상태를 트리거하는 함수를 만들었습니다.
package com.jesusbornd.samuel2;
public class Samuel2_10_Chapter_Lv2 {
enum DiplomaticStatus { ACCEPTED, INSULTED }
static void handleEnvoy(String sender, String recipient, DiplomaticStatus status) {
System.out.printf("외교 사절: %s → %s | 처리: %s%n", sender, recipient, status);
if (status == DiplomaticStatus.INSULTED) {
System.out.println("🔴 전쟁 트리거: 외교적 모욕 감지");
}
}
public static void main(String[] args) {
handleEnvoy("다윗", "암몬", DiplomaticStatus.INSULTED);
}
}
def handle_envoy(sender: str, recipient: str, status: str):
print(f"외교 사절: {sender} → {recipient} | 처리: {status}")
if status == "INSULTED":
print("🔴 전쟁 트리거: 외교적 모욕 감지")
handle_envoy("다윗", "암몬", "INSULTED")
Search
Categories
← 목록으로
Comments
외교 메시지 하나가 전쟁의 방아쇠가 됩니다.