Skip to content

Commit

Permalink
Merge pull request #71 from srajan-kiyotaka/hpx
Browse files Browse the repository at this point in the history
file name edits !
  • Loading branch information
srajan-kiyotaka authored Jun 26, 2024
2 parents 3ccc758 + fc433b0 commit 2299414
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def numIslands(grid, n:int, m:int, agent:GridAgent)->int:
else:
land.append([i, j])

world = CreateGridWorld(worldName = "Leetcode Number of Islands", rows = n, cols = m, cellSize = 36)
world = CreateGridWorld(worldName = "Number of Islands", rows = n, cols = m, cellSize = 36)
world.constructWorld()
world.setBlockPath(water)
world.setGoalState(land)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def uniquePaths(m:int, n:int, agent:GridAgent)->int:
if __name__ == "__main__":
m = 3
n = 7
world = CreateGridWorld(worldName = "Leetcode Unique Paths", rows = m, cols = n, cellSize = 36)
world = CreateGridWorld(worldName = "Unique Paths", rows = m, cols = n, cellSize = 36)
world.constructWorld()
agent = GridAgent(world, agentName = "Robot")
def sim():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def uniquePaths(m:int, n:int, agent:GridAgent)->int:
if __name__ == "__main__":
m = 4
n = 7
world = CreateGridWorld(worldName = "Leetcode Unique Paths 2", rows = m, cols = n, cellSize = 36)
world = CreateGridWorld(worldName = "Unique Paths 2", rows = m, cols = n, cellSize = 36)
world.constructWorld()
world.setBlockPath([[0,5], [2,2], [1,4], [3,5]])
agent = GridAgent(world, agentName = "Robot")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def levelOrderTraversal(rootId: int, agent: TreeAgent, world: CreateTreeWorld):
},
'goals': []
}
world = CreateTreeWorld(worldName="Leetcode Binary Tree Level Order Traversal", worldInfo=treeInfo, radius=30)
world = CreateTreeWorld(worldName="Binary Tree Level Order Traversal", worldInfo=treeInfo, radius=30)
world.constructWorld()
agent = TreeAgent(world, agentName="TraversalAgent")
world.setAgent(agent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def lowestCommonAncestor(rootId:int, p:int, q:int, agent:TreeAgent, world:Create
},
'goals': [7, 9]
}
world = CreateTreeWorld(worldName = "Leetcode Lowest Common Ancestor of a Binary Tree", worldInfo = treeInfo, radius = 30)
world = CreateTreeWorld(worldName = "Lowest Common Ancestor of a Binary Tree", worldInfo = treeInfo, radius = 30)
world.constructWorld()
agent = TreeAgent(world, agentName = "Robot")
world.setAgent(agent)
Expand Down

0 comments on commit 2299414

Please sign in to comment.