크레센도
2026년 1월 12일 15:45분
package com.jesusbornd.exodus;
public class Exodus_09_Chapter_Lv1 {
enum PlagueState {
WARNING,
DISTINCTION,
ESCALATION
}
public static void main(String[] args) {
PlagueState state = PlagueState.ESCALATION;
switch (state) {
case WARNING ->
System.out.println("경고 / Warning: 재앙이 오기 전 말씀으로 알리심 / A warning is spoken before the plague");
case DISTINCTION -> System.out.println("구별 / Distinction: 고센은 보호됨 / Goshen is spared");
case ESCALATION -> System.out.println("격상 / Escalation: 우박 재앙으로 강도가 높아짐 / The plague escalates with hail");
}
}
}
from enum import Enum
class PlagueState(Enum):
WARNING = 1
DISTINCTION = 2
ESCALATION = 3
state = PlagueState.ESCALATION
match state:
case PlagueState.WARNING:
print("경고 / Warning:", "재앙이 오기 전 말씀으로 알리심 / A warning is spoken before the plague")
case PlagueState.DISTINCTION:
print("구별 / Distinction:", "고센은 보호됨 / Goshen is spared")
case PlagueState.ESCALATION:
print("격상 / Escalation:", "우박 재앙으로 강도가 높아짐 / The plague escalates with hail")
Search
Categories
← 목록으로
Comments
경고를 줬는데도 안 바뀌니까, 이번엔 “강도”가 올라가는 게 보이네요. 특히 고센 구별이 들어가면서, 재앙이 무작위가 아니라 ‘질서’로 작동한다는 느낌이 확 옵니다.