RitheeSh8/wumpus__world — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a simple Python Wumpus World program that I can run in the terminal as a small AI logic demo. I want a 4 by 4 world with one Wumpus, one pit, gold, and the player starting in the top left room. The player should move with basic inputs like up, down, left, and right, and the game should show clues like breeze near a pit and smell near the Wumpus.

I also want it to clearly demonstrate reasoning from propositional logic, so the program should infer which nearby rooms are safe or dangerous based on the clues the agent has seen so far, not just hardcode everything with no explanation. Keep the one arrow idea, let the player shoot if they sense the Wumpus nearby, and track a simple score. If the player finds the gold and survives, they win. If they enter the Wumpus room or a pit, they lose.

Please make it clean, complete, and easy to run, with a short explanation in comments or printed output so a student can understand the logic.

Want more depth? Deep Reverse