꿈같은일
2025년 12월 12일 10:54분
package com.jesusbornd.genesis;
/*
* Genesis_40_Chapter_Lv1_V3.java
* Variation: Dream Interpreter Engine
* - 동일한 상황, 다른 꿈, 다른 결과
*/
import java.util.List;
public class Genesis_40_Chapter_Lv1_V3 {
enum Outcome {
RESTORED, // 복직
EXECUTED // 처형
}
record DreamCase(
String person,
String ref,
String dream,
String interpretation,
Outcome outcome
) {}
private static final List<DreamCase> CASES = List.of(
new DreamCase(
"술 맡은 관원장",
"창40:12–13",
"포도나무에 세 가지 가지가 있어 포도를 짜서 바로의 잔에 넣음",
"세 날 안에 복직되어 잔을 바로의 손에 다시 드릴 것",
Outcome.RESTORED
),
new DreamCase(
"떡 굽는 관원장",
"창40:18–19",
"머리 위 세 광주리에 새가 떡을 먹음",
"세 날 안에 목이 달아나고 시체가 새의 먹이가 될 것",
Outcome.EXECUTED
)
);
public static void main(String[] args) {
System.out.println("[Genesis 40 | KRV & ESV]");
System.out.println("— Dream Interpreter Engine —\n");
for (DreamCase dc : CASES) {
System.out.println("■ Person: " + dc.person());
System.out.println(dc.ref());
System.out.println("Dream: " + dc.dream());
System.out.println("Interpretation: " + dc.interpretation());
System.out.println("Outcome: " + dc.outcome());
System.out.println("→ Meaning: " + meaning(dc.outcome()));
System.out.println();
}
showSummary();
showPractice();
}
private static String meaning(Outcome outcome) {
return switch (outcome) {
case RESTORED -> "하나님은 때가 되면 잃어버린 자리를 회복시키신다.";
case EXECUTED -> "하나님의 진리는 달콤하지 않아도 숨기지 않는다.";
};
}
private static void showSummary() {
System.out.println("[Summary]");
System.out.println(
"요셉은 감옥에서도 하나님께 속한 꿈 해석자로 쓰임받았다(40:8). "
+ "같은 꿈의 구조 속에서도 결과는 달랐고, 하나님의 뜻은 정확히 성취되었다(40:21–22)."
);
System.out.println();
}
private static void showPractice() {
System.out.println("[Practice]");
System.out.println(
"상황이 막혀 보여도 하나님이 맡기신 역할에 충실하자. "
+ "감옥에서도 사명은 중단되지 않는다."
);
}
}
#### Genesis_40_Chapter_Lv1_V3.py
#### Variation: Dream Interpreter Engine (Python 초중급)
from dataclasses import dataclass
@dataclass
class DreamCase:
person: str
ref: str
dream: str
interpretation: str
outcome: str # RESTORED / EXECUTED
cases = [
DreamCase(
"술 맡은 관원장",
"창40:12–13",
"세 가지 포도 가지에서 포도를 짜 바로에게 드림",
"세 날 안에 복직됨",
"RESTORED"
),
DreamCase(
"떡 굽는 관원장",
"창40:18–19",
"머리 위 세 광주리, 새가 떡을 먹음",
"세 날 안에 처형됨",
"EXECUTED"
)
]
def meaning(outcome: str) -> str:
return {
"RESTORED": "회복은 하나님의 때에 정확히 이루어진다.",
"EXECUTED": "하나님의 진리는 불편해도 숨기지 않는다.",
}.get(outcome, "")
def main():
print("[Genesis 40 | KRV & ESV]")
print("— Dream Interpreter Engine (Python) —\n")
for c in cases:
print(f"■ Person: {c.person}")
print(c.ref)
print("Dream:", c.dream)
print("Interpretation:", c.interpretation)
print("Outcome:", c.outcome)
print("→ Meaning:", meaning(c.outcome))
print()
print("[Summary]")
print(
"요셉은 감옥에서도 하나님의 꿈 해석자로 쓰임받았고(40:8), "
"말씀은 정확히 성취되었다(40:21–22).\n"
)
print("[Practice]")
print(
"지금 내가 있는 자리가 감옥처럼 느껴져도, "
"하나님이 맡기신 역할을 성실히 감당하자."
)
if __name__ == "__main__":
main()
Search
Categories
← 목록으로
Comments
요셉의 “꿈 해석”이 단순 재능이 아니라, 감옥에서도 하나님이 맡기신 사명을 붙드는 복음적 충성으로 보이네요.