Visualise

visualise.visualise_world(filepath=None)

Allows you to generate a visualisation of the world where the locations are nodes and each exit is an edge.

Parameters:
  • world (World) – The world to represent
  • filepath (Optional[str]) – Optional filepath to save the image to, if none is provided the world will be shown on an interactive display.
https://github.com/ClementJ18/pyzork/blob/master/examples/example_world.png