'코드'
Swift 명령 보석을 수집하도록 캐릭터를 움직입니다.
Swift 명령을 작성하여 캐릭터 보석을 수집하도록 해야 합니다.
moveForward() = 앞으로 한 칸씩 움직이다.
collectGem() = 점프 보석을 수집하다.
3칸,보석1개
코드
moveForward() = 한칸
moveForward() = 한칸
moveForward() = 한칸
collectGem() = 점프,보석수집
'Playgrounds'플레이그라운드'' 카테고리의 다른 글
Playgrounds '플레이그라운드' 5. (0) | 2024.05.15 |
---|---|
Playgrounds '플레이그라운드' 4. (0) | 2024.05.14 |
Playgrounds ‘플레이그라운드’ 3. (0) | 2024.05.14 |
Playgrounds '플레이그라운드' 2. (0) | 2024.05.14 |
Playgrounds '플레이그라운드' (0) | 2024.05.14 |