보상처벌
2026년 7월 9일 09:30분
신명기 28장에서 순종하면 복이, 불순종하면 저주가 자세히 열거됩니다. 조건에 따라 보상 또는 처벌을 반환합니다. 나는 조건을 평가해 보상/처벌 결과를 출력하는 평가기를 만들었습니다.
package com.jesusbornd.deuteronomy;
import java.util.List;
public class Deuteronomy_28_Chapter_Lv1 {
record Outcome(boolean blessed, String detail) {}
static final List<String> BLESSINGS = List.of("도시에서 복", "들에서 복", "자녀 복", "전쟁 승리");
static final List<String> CURSES = List.of("역병", "가뭄", "패전", "포로", "기근");
static Outcome evaluate(boolean obedient) {
if (obedient) return new Outcome(true, "✅ 복: " + BLESSINGS);
return new Outcome(false, "❌ 저주: " + CURSES);
}
public static void main(String[] args) {
var r1 = evaluate(true);
var r2 = evaluate(false);
System.out.println(r1.detail());
System.out.println(r2.detail());
}
}
BLESSINGS = ["도시에서 복", "들에서 복", "자녀 복", "전쟁 승리"]
CURSES = ["역병", "가뭄", "패전", "포로", "기근"]
def evaluate(obedient):
if obedient: return f"✅ 복: {BLESSINGS}"
return f"❌ 저주: {CURSES}"
if __name__ == "__main__":
print(evaluate(True))
print(evaluate(False))
Search
Categories
← 목록으로
Comments
보상과 처벌의 비대칭 — 처벌 항목이 훨씬 상세한 이유가 있는군요.