def buildWorld(): world = World.World(40, 20) world.addLine(10, 4, 11, 4) world.addLine(11, 4, 11, 6) world.addLine(11, 6, 10, 6) world.addLine(10, 6, 10, 4) world.addLine(13,10,15,10) world.addLine(16,10,18,10) world.addLine(13,12,14,12) world.addLine(15,12,18,12) #polyline = [[5,5],[15,5],[15,15],[5,15],[5,5]] world.addLine(4, 15, 4, 5) world.addLine(6, 15, 6, 5) world.addLine(4, 10, 5, 10) world.addLine(4, 9, 5, 9) world.addLine(5, 9, 5, 10) #world.addLine(1, 5, 10, 5) return world
def buildWorld(): world = World.World(18, 14) world.addLine(2, 2, 16, 2) world.addLine(16, 2, 16, 12) world.addLine(16, 12, 4, 12) world.addLine(4, 12, 4, 10) world.addLine(4, 10, 2, 10) world.addLine(2, 10, 2, 2) return world
def buildWorld(): world = World.World(40, 20) #polyline = [[5,4],[5,16]] world.addLine(4, 15, 4, 5) world.addLine(6, 15, 6, 5) world.addLine(4, 10, 5, 10) world.addLine(4, 9, 5, 9) world.addLine(5, 9, 5, 10) #world.addLine(1, 5, 10, 5) return world
def buildWorld(): world = World.World(25, 10) world.addLine(9, 4, 10, 4) world.addLine(10, 4, 10, 6) world.addLine(10, 6, 9, 6) world.addLine(9, 6, 9, 4) world.addLine(13, 5, 14, 5) world.addLine(14, 5, 14, 7) world.addLine(14, 7, 13, 7) world.addLine(13, 7, 13, 5) #polyline = [[5,5.5],[15,5.5]] return world
def buildWorld(): world = World.World(20, 10) world.addLine(1, 5, 10, 5) world.addLine(11, 5, 19, 5) world.addLine(1, 7, 19, 7) world.addLine(11, 5, 11, 3.5) world.addLine(11, 2.5, 11, 1) world.addBox(15, 3) polyline = [[1, 6], [10.5, 6], [10.5, 3], [15, 3]] world.drawPolyline(polyline) return world
def buildWorld(): world = World.World(20, 10) world.addLine(1, 5, 10, 5) world.addLine(11, 5, 19, 5) world.addLine(1, 7, 19, 7) # world.addLine(5, 5.3, 5, 6) # world.addLine(5, 6, 5.5, 6) # world.addLine(5.5, 6, 5.5, 5.3) # world.addLine(5, 5.3, 5.5, 5.3) world.addBox(13, 6) world.addBox(10.5,3) #polyline = [[1,6],[10.5,6],[10.5,3]] #world.drawPolyline(polyline) return world
def buildWorld(): world = World.World(20, 20) return world
def buildWorld(): world = World.World(19, 14) world.addLine(1, 1, 18, 1) world.addLine(18, 1, 18, 13) world.addLine(18, 13, 1, 13) world.addLine(1, 13, 1, 1) # room 1 and 2 #world.addLine(3, 3, 11, 3) world.addLine(3, 3, 8.5, 3) world.addLine(9.5, 3, 11, 3) #world.addLine(11, 6, 3, 6) world.addLine(3, 6, 4.5, 6) world.addLine(5.5, 6, 11, 6) world.addLine(11, 3, 11, 6) #world.addLine(7, 3, 7, 6) world.addLine(7, 3, 7, 4) world.addLine(7, 5, 7, 6) world.addLine(3, 6, 3, 3) world.defineRoom('Room 01', 5, 4.5) world.defineRoom('Room 02', 9, 4.5) # room 3 and 4 #world.addLine(3, 8, 11, 8) world.addLine(3, 8, 8.5, 8) world.addLine(9.5, 8, 11, 8) #world.addLine(11, 11, 3, 11) world.addLine(3, 11, 4.5, 11) world.addLine(5.5, 11, 11, 11) world.addLine(11, 8, 11, 11) world.addLine(7, 8, 7, 11) world.addLine(3, 11, 3, 8) world.defineRoom('Room 03', 5, 9.5) world.defineRoom('Room 04', 9, 9.5) # room 5 and 6 #world.addLine(16, 11, 13, 11) world.addLine(13, 11, 14, 11) world.addLine(15, 11, 16, 11) #world.addLine(13, 7, 16, 7) world.addLine(13, 7, 14, 7) world.addLine(15, 7, 16, 7) world.addLine(13, 3, 16, 3) #world.addLine(16, 3, 16, 11) world.addLine(16, 3, 16, 4.5) world.addLine(16, 5.5, 16, 11) world.addLine(13, 11, 13, 3) world.defineRoom('Room 05', 14.5, 9) world.defineRoom('Room 06', 14.5, 4.5) # Boxes: world.addBox(3.2, 5.8) world.addBox(7.2, 10.8) world.addBox(13.2, 6.8) return world