Scratch 구현 가이드: How to Shuffle a List (Fisher-Yates Style) in Scratch
📌 이 페이지에서 배우는 내용
먼저 최소 동작 버전을 완성해 테스트한 뒤 속도, 소리, 스테이지를 확장해 보세요. Swap each position with a random index in the list.
핵심 원리 및 구현 단계: Minimal Working Block Recipe
먼저 최소 동작 버전을 완성해 테스트한 뒤 속도, 소리, 스테이지를 확장해 보세요.
Swap each position with a random index in the list.
Test this minimal version first, then tune numbers like speed, gravity, or timing to match your game feel.
Shuffle a List (Fisher-Yates Style) script
- loop i from 1 to length: pick random r, swap item i and item r
직접 해보기: Fair, unbiased card and playlist shuffling.
테스트 체크리스트 및 응용: Debugging Checklist & Next Steps
초록 깃발을 누르기 전에 결과를 예측하고 변수와 좌표 변화를 직접 확인하세요.
If it behaves unexpectedly, verify initial variable resets on the green flag and check that continuous checks sit inside a forever loop.
테스트 체크리스트 및 응용
초록 깃발을 누르기 전에 결과를 예측하고 변수와 좌표 변화를 직접 확인하세요.
이 안내서는 학습을 돕기 위한 자료입니다. Scratch 화면 구성과 이용 약관은 업데이트될 수 있으므로 공식 사이트 정보도 함께 확인해 주세요.