321-HW14 - 8 12 9 MOVE 10 JUMP_IF_NOT_NEX TURNLEFT 15...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EXAMPLE 1: 0 JUMP_IF_NOT_NEXT_IS_WALL 1 6 2 TURNRIGHT 3 TURNRIGHT 4 INFECT 5 JUMP 6 7 7 ... EXAMPLE 2: 0 JUMP_IF_NOT_NEXT_IS_WALL 1 7 2 TURNRIGHT 3 TURNRIGHT 4 INFECT 5 JUMP 6 9 7 INFECT 8 MOVE 9 ... EXAMPLE 3: 0 JUMP_IF_NOT_NEXT_IS_NOT_EMPTY 1 13 2 JUMP_IF_NOT_NEXT_IS_WALL 3 9 4 TURNRIGHT 5 TURNRIGHT 6 INFECT 7 JUMP 8 0 9 INFECT 10 MOVE 11 JUMP 12 0 13 ... EXAMPLE 4: 0 JUMP_IF_NOT_TRUE 1 9 2 TURNRIGHT 3 TURNRIGHT 4 JUMP_IF_NOT_NEXT_IS_ENEMY 5 0 6 INFECT 7 JUMP 8 0 9 ... EXAMPLE 5: 0 JUMP_IF_NOT_TRUE 1 18 2 JUMP_IF_NOT_NEXT_IS_ENEMY 3 7 4 INFECT 5 JUMP 6 7
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
7 JUMP_IF_NOT_NEXT_IS_EMPTY
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 8 12 9 MOVE 10 JUMP 11 12 JUMP_IF_NOT_NEXT_IS_WALL 13 14 TURNLEFT 15 TURNLEFT 16 JUMP 17 18 ... EXAMPLE 6: JUMP_IF_NOT_TRUE 1 END NUM 2 JUMP_IF_NOT_NEXT_IS_EMPTY 3 7 4 MOVE 5 JUMP 6 7 JUMP_IF_NOT_NEXT_IS_ENEMY 8 12 9 INFECT 10 JUMP 11 12 12 TURNRIGHT 13 TURNRIGHT 14 JUMP_IF_NOT_NEXT_IS_ENEMY 15 16 INFECT 17 JUMP 18 19 ......
View Full Document

This note was uploaded on 02/27/2012 for the course CSE 321 taught by Professor Bucci during the Winter '11 term at Ohio State.

Page1 / 2

321-HW14 - 8 12 9 MOVE 10 JUMP_IF_NOT_NEX TURNLEFT 15...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online