AP Computer Science 1.2 GridWorld Case Study and APIs

AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?

APAP Computer Science
Computer ScienceAP Computer Science
LanguageEnglish Language
Test PrepAP Computer Science

Transcript

00:20

Are these that look Not like wicked witches All right

00:24

Well this one's pretty simple it's Just a test of

00:26

your grid World knowledge and it's One of those things

00:29

that you either know or you know with the bug

00:32

classes a subclass of act a bit like rock flour

00:36

and a few others Right So bug has a few

00:39

things Those classes don't However it has the ability to

00:42

change direction and move about the grid The turn method

00:46

changes the direction the bug is facing by forty five

00:50

degrees to the right without changing its position on the

00:53

grid Here's our bus found him in the back instead

00:57

of adultery What We've been calling him stinging ever since

01:02

the so what happens when we call Turn four times

01:07

Okay Well let's be careful Grab him from the back

01:10

Watching these benefits on that one do you Three and

01:15

four What's A bad was his thing Destiny is now

01:18

facing south which makes our answer c And if you

01:21

didn't know that concept off the top of your head

01:23

don't worry it's in that bigelow a pcs quick reference 00:01:27.988 --> [endTime] guide that you'll get to use during the exam