GridWorld Case Study Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What does a Flower do when it acts?

A

Becomes darker

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a Rock do when it acts?

A

Nothing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does a Bug do when it acts?

A

When facing an empty spot or Flower, moves onto that spot and leaves a Flower behind. When facing another type of Actor or a Grid edge, turns 45 degrees right and doesn’t move.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does a BoxBug do when it acts?

A

Moves like a Bug, but traces out a square if there are no obstacles. If blocked, it turns 90 degrees right and starts over.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does a Critter do when it acts?

A

Eats (removes from the Grid) all neighboring actors (except Rocks and other Critters), then randomly picks a neighboring location and moves there (without changing direction).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does a ChameleonCritter do when it acts?

A

Picks a random neighbor and matches its color (doesn’t change color if there are no neighboring Actors), then moves randomly like a Critter after turning to face the direction it moves.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does an Actor do when it acts?

A

Reverses direction (subclasses of Actor generally override this method).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Flower’s parent is…

A

Actor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Rock’s parent is…

A

Actor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Bug’s parent is…

A

Actor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Critter’s parent is…

A

Actor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

BoxBug’s parent is…

A

Bug

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

ChameleonCritter’s parent is…

A

Critter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly