일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- Uniting Worlds
- 컴터 연결
- SwiftUI
- 신세지다
- crank up and down
- Making Your Own Portals
- Grammarly
- allege
- obliged
- 기초
- coding
- 2대 연결
- collect the total
- Playgrounds
- 구글이 좋아하는 강한 SEO 작성 방법
- 렛츠톡 첫 화면
- Swift
- 인앱 결제
- 코린이
- feel torn
- progamming
- Polite
- Playground
- 맥
- Learning
- Generalizing a Funcetion
- Connect and Solve
- 해당 비즈니스 및 사이트명을 포함할 수 있도록 페이지 텍스트를 편집하세요 - wix.com
- 코딩
- BASIC
- Today
- Total
목록SwiftUI (4)
IT

Initializing your Expert let expert = Expert() func expertMovethree() { expert.moveForward() expert.moveForward() expert.moveForward() } func expertTurnAround() { expert.turnLeft() expert.turnLeft() } expert.moveForward() expert.moveForward() expert.moveForward() expert.turnLockUp() expertTurnAround() expertMovethree() expert.turnLeft() for i in 1 ... 3 { expertMovethree() expert.collectGem() ex..

if you want to build a house, you use a blueprint. A blueprint shows the features of your house, such as the kitchen, bathrooms, and bedrooms. When you use a blueprint to build multiple houses, you know that the houses will look similar. In programming, a type is like a blueprint, and an instance is like a house that you built from the blueprint. In a type, features are called properties, and be..

Now I take one more step. This is the first question var gemCounter = 1 moveForward() moveForward() collectGem() gemCounter = 1 comment) I can set a var statement in this way quest 2 = incrementing variable this means increasing var. var gemCounter = 0 while !isBlocked { while !isBlocked { if isOnGem { collectGem() gemCounter = gemCounter + 1 } moveForward() } turnRight() } comment) 큰 범위(while)에..

Yes, I can use the condition after the while statement. Quest 1 while !isBlocked { moveForward() if isOnOpenSwitch { moveForward() } else if isonClosedSwitch { toggleSwitch () } } while 스테이트먼트 쓸때 첫 조건은 그냥 앞으로 나아가라고 해도 된다. 이 점을 생각해내기가 어려웠음. Quest 2 func turnAndCollectGem() { moveForward() turnLeft() moveForward() collectGem() turnRight() } while !isBlocked { turnAndColllectGem () } tip. In coding..