미스바전

2026년 9월 2일 09:30분

사무엘상 7장에서 사무엘이 미스바에서 이스라엘을 집결시키고 금식 기도 후 블레셋을 물리칩니다. 준비와 회개가 전투보다 앞섭니다. 나는 전투 전 체크리스트를 검증하는 함수를 만들었습니다.

package com.jesusbornd.samuel1;
import java.util.List;

public class Samuel1_07_Chapter_Lv1 {
    static boolean readyForBattle(List<String> checklist) {
        return checklist.stream().allMatch(item -> item.startsWith("✅"));
    }
    public static void main(String[] args) {
        var checklist = List.of("✅ 우상 제거", "✅ 금식 기도", "✅ 회개 완료");
        System.out.println("전투 준비: " + (readyForBattle(checklist) ? "출전" : "대기"));
        System.out.println("결과: 🏆 블레셋 격퇴");
    }
}

def ready_for_battle(checklist: list) -> bool:
    return all(i.startswith("✅") for i in checklist)

checklist = ["✅ 우상 제거", "✅ 금식 기도", "✅ 회개 완료"]
print("전투 준비:", "출전" if ready_for_battle(checklist) else "대기")
print("결과: 🏆 블레셋 격퇴")

Comments

Avatar
 2026년 9월 2일 11:36분

전투는 기도 이후에 시작됩니다.



Search

← 목록으로