# # convert2Convex - keep splitting rooms until they are all convex # def convert2Convex (): while not allConvex (): pass
# # allConvex - return True if all rooms are convex. # def allConvex (): for r in rooms.keys (): if not rooms[r].isconvex: if len (rooms[r].walls) == 4: rooms[r].isconvex = True else: walkRoom (r) return False return True # all done, all convex
This document was produced using groff-1.22.