Python Examples (Malmo Functionality)
Here is a list of Python examples that might be useful for your assignments/projects: https://github.com/Microsoft/malmo/tree/master/Malmo/samples/Python_examples
Links to an external site.
File
|
What can you learn from it?
|
craft_work.py
|
- Continuous movement toward item when you know in advance the item you want to pick.
- Inventory search.
- Simple craft commands.
- Generating items in the world
|
build_test.py
|
- Detecting objects in line of sight
- Use items (instead of just dropping)
- ‘Strafe’ movement
- Use of hotbar inventory
|
tabular_q_learning.py
|
- Simple reinforcement learning algorithm implementation.
- Setting rewards in XML
- Grid-based states space and actions.
- Drawing grid base canvas
|
mob_fun.py
|
- Spawning enemies.
- VERY SIMPLE reinforcement learning for avoiding enemies and collecting life.
- Continuous movement to avoid enemies.
- Drawing continuous space movement canvas.
|
agent_visability.py
|
- Detecting things on the map using vision.
|
discrete _3d_test.py
|
- Moving on a 3d world as if it’s a grid (adding jump stuff).
- Creating a complicated world through the XML for movement.
|
depth_map_runner.py
|
Use VideoProducer to get pixel values (screenshots) and depth of pixel. |
malmo_input_test.py
|
- Allowing input command for the agent during a mission.
|
MazeRunner.py
|
- Maze movement through PathBlock (XML).
- Creating mazes.
|
moving_target_test.py
|
- Creating targets (moving ones :) )
- Turn base movements
|
Multi_agent_test.py / team_reward_test.py
|
- How to set up multiple agents to use the same environment (same “game”)
|