A function like pickRoom is hard to read with all the nested if statements. It can be

Question:

A function like pickRoom is hard to read with all the nested if statements. It can be made clearer with appropriate use of comments to explain what each section of the code is doing—checking the room, then checking the possible directions in the room. Add comments to pickRoom to make it easier to read.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: