The Wumpus world — AI Technical Interview Questions & Answers

The Wumpus world

The Wumpus world

  • Wumpus world is a grid cave. Pits, a wumpus, gold. Breeze near pits, stench near wumpus. The agent gets percepts, not a full map. It must infer safe squares. Perfect for KR + logic questions.
  • Don’t recast the whole game. Say percepts, hazards, gold goal, partial observability. Then one inference: breeze in (1,1) empty? then pit maybe in (1,2) or (2,1).
  • Output: idea / do / check for The Wumpus world. Fill those three in the viva.

Technical Interview Tip: One percept → one safe/unsafe guess.

Code Examples for The Wumpus world

Example

# The Wumpus world
print("idea :", "The Wumpus world")
print("do   : one tiny example on paper")
print("check: one failure case")

Output: idea / do / check for The Wumpus world. Fill those three in the viva.

How to Explain The Wumpus world to an Interviewer

Explain The Wumpus world as if you are teaching a junior — definition, then one example.

Grid + pits + wumpus + gold. Breeze / stench percepts.

What does the example print, and what does that prove?

idea / do / check for The Wumpus world

What mistake do freshers make with The Wumpus world?

Partial observability.