Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

PART 2 MOVING AROUND THE WORLD (20 POINTS) (JAVA Language) - updateVisibility is not working The updateVisibility Method(6 Points): - Difficult! -spec is in here:

PART 2 MOVING AROUND THE WORLD (20 POINTS) (JAVA Language) - updateVisibility is not working

The updateVisibility Method(6 Points): - Difficult! -spec is in here: https://www.chegg.com/homework-help/questions-and-answers/part-2-moving-around-world-20-points-java-language-https-wwwcheggcom-homework-help-questio-q107086933

Failed: For a grid with a set of obstacles, player not in default position and an exit added, your updateVisibility method with view distance of 3 should have produced +-+-+-+-+-+-+-+-+ |~|~|~|~|~|~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~|~|~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~|#|~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~| |~|~|~| +-+-+-+-+-+-+-+-+ |~| |X| |P|#|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~| |~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~| |~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~|#|~|~|~| +-+-+-+-+-+-+-+-+ when it actually produced +-+-+-+- ... [truncated, 939 characters remain]

Hide stacktrace org.opentest4j.AssertionFailedError: For a grid with a set of obstacles, player not in default position and an exit added, your updateVisibility method with view distance of 3 should have produced +-+-+-+-+-+-+-+-+ |~|~|~|~|~|~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~|~|~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~|#|~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~| |~|~|~| +-+-+-+-+-+-+-+-+ |~| |X| |P|#|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~| |~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~| |~|~|~| +-+-+-+-+-+-+-+-+ |~|~|~|~|#|~|~|~| +-+-+-+-+-+-+-+ ... [truncated, 976 characters remain]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions