This repository contains two main branches that allow you to reproduce and test our Wumpus World solving algorithm. Depending on your available resources, you can choose between running the algorithm on Arduino robots or simulating it in a Minecraft virtual environment.
You can learn more about "Wumpus World" and our project here!
This branch contains MicroPython code for running the algorithm on Arduino robots.
- Clone the repository:
git clone https://github.com/RichardJSun/WumpusWorld.git
- Open OpenMV and load the code from the repository.
- Attach your robot via USB.
- Run the code.
- The robot moves across tiles and uses pre-programmed hex values to transcribe hints.
- Pair your machine with the LightBlue app on your phone or laptop to input clues.
- Adjust the movement speed or distance if your robot doesn't traverse tiles accurately.
Note: Robot movement may require manual tuning for optimal performance.
This branch lets you simulate the algorithm in a virtual Minecraft environment if you don't have access to a robot.
-
Clone the repository:
git clone --branch minecraft https://github.com/RichardJSun/WumpusWorld.git
-
Open the
SIMULATIONfolder in IntelliJ (preferred) or VSCode.- Do not open the entire repository.
-
Ensure your IDE recognizes the
.gradlefolder:- If it doesn't, manually open it and install the needed dependencies.
-
Build the project:
./gradlew build
-
Run the
Minecraft Clientconfiguration.
Note: The first-time compilation may take up to 4 minutes.
-
Launch the Minecraft Developer Edition Client.
-
Create a new single-player world:
- World Configuration: Superflat
- Customize Layers: Remove all layers.
- Game Mode: Creative
- Allow Commands: Enabled
- Game Rules:
- Disable weather, advance time/day, all spawning, and mob loot.
Watch a video on how to create the Minecraft world with the right configurations.
-
Once in the world:
- Teleport to the starting coordinates:
/tp 0 0 0
- Build a sample board:
/wumpusworld build test - Fix any desync issues by breaking and replacing blocks, then run the build command again.
- Teleport to the starting coordinates:
-
Simulate the solving process:
/wumpusworld simulate
- Use the 4x4 grid to create a custom board with the following block types:
- Gold: Gold Block
- Wumpus: Redstone Block
- Pit: Empty (no block)
- Safe Square: Bedrock
- Spawn Point: Diamond Block
- Run the simulation:
/wumpusworld simulate
- Navigate to the
/boardsdirectory.
- Create a new
.txtfile with a 4x4 character grid:P: PitG: GoldH: Home/Spawn PointE: Empty/Normal SquareW: Wumpus
- Example file:
HEEE EPEW GGEP EEEE - Save the file and re-run (quit and run again) the program or hot reload. Then build it in-game with the command:
/wumpusworld build [filename]
- Simulate the board:
/wumpusworld simulate
Note: For any issues or bugs, please create an issue in the repository.


