티스토리 뷰
def turn_right():
turn_left()
turn_left()
turn_left()
def go_and_jump():
while front_is_clear():
if not at_goal():
move()
else:
done()
turn_left()
while wall_on_right():
move()
turn_right()
move()
turn_right()
while front_is_clear():
move()
turn_left()
while not at_goal():
go_and_jump()
-------------------------------------------------------------------------------------------------------------------------------
def turn_right():
turn_left()
turn_left()
turn_left()
def go_and_jump():
turn_left()
while wall_on_right():
move()
turn_right()
move()
turn_right()
while front_is_clear():
move()
turn_left()
while not at_goal():
if front_is_clear():
move()
else:
go_and_jump()
'Test > Python(20220101~)' 카테고리의 다른 글
Day7_Hangman Game2 (0) | 2022.01.08 |
---|---|
Day7_Hangman Game (0) | 2022.01.08 |
Day6_While loop (0) | 2022.01.07 |
Day6_Style Guide for Python Code (0) | 2022.01.07 |
Day5_비번 생성기 (0) | 2022.01.06 |
- Total
- Today
- Yesterday
- cloud-init
- 제곱
- LIST
- dp-2
- 중복제거
- fromkeys
- virt-sysprep
- 읽어오기
- 부동없이
- set()
- 대소문자
- insert
- 차집합
- dp-1
- Join
- 배열
- 스토리지
- 3par
- powercli
- oracle
- Append
- vmware.powercli
- 정렬
- sysprep
- vmware
- storage
- 변수화
- powershell
- EXA
- exadata
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |