From fc433b0f83b5ff417d80aedbee1e1a0f17ca6b79 Mon Sep 17 00:00:00 2001 From: harrionparrix Date: Wed, 26 Jun 2024 19:32:32 +0530 Subject: [PATCH] file name edits ! --- .../{leetcode_number_of_islands.py => number_of_islands.py} | 2 +- .../Grid World/{leetcode_unique_path.py => unique_path.py} | 2 +- .../Grid World/{leetcode_unique_path_2.py => unique_path_2.py} | 2 +- ...etcode_level_order_traversal.py => level_order_traversal.py} | 2 +- ..._binary_tree.py => lowest_common_ancestor_of_binary_tree.py} | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename tutorials/Grid World/{leetcode_number_of_islands.py => number_of_islands.py} (95%) rename tutorials/Grid World/{leetcode_unique_path.py => unique_path.py} (91%) rename tutorials/Grid World/{leetcode_unique_path_2.py => unique_path_2.py} (91%) rename tutorials/Tree World/{leetcode_level_order_traversal.py => level_order_traversal.py} (93%) rename tutorials/Tree World/{leetcode_lowest_common_ancestor_od_a_binary_tree.py => lowest_common_ancestor_of_binary_tree.py} (92%) diff --git a/tutorials/Grid World/leetcode_number_of_islands.py b/tutorials/Grid World/number_of_islands.py similarity index 95% rename from tutorials/Grid World/leetcode_number_of_islands.py rename to tutorials/Grid World/number_of_islands.py index e2aba40..8eb2b99 100644 --- a/tutorials/Grid World/leetcode_number_of_islands.py +++ b/tutorials/Grid World/number_of_islands.py @@ -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) diff --git a/tutorials/Grid World/leetcode_unique_path.py b/tutorials/Grid World/unique_path.py similarity index 91% rename from tutorials/Grid World/leetcode_unique_path.py rename to tutorials/Grid World/unique_path.py index 9a3dcfe..9a8f47e 100644 --- a/tutorials/Grid World/leetcode_unique_path.py +++ b/tutorials/Grid World/unique_path.py @@ -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(): diff --git a/tutorials/Grid World/leetcode_unique_path_2.py b/tutorials/Grid World/unique_path_2.py similarity index 91% rename from tutorials/Grid World/leetcode_unique_path_2.py rename to tutorials/Grid World/unique_path_2.py index e8b7dba..7f7323e 100644 --- a/tutorials/Grid World/leetcode_unique_path_2.py +++ b/tutorials/Grid World/unique_path_2.py @@ -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") diff --git a/tutorials/Tree World/leetcode_level_order_traversal.py b/tutorials/Tree World/level_order_traversal.py similarity index 93% rename from tutorials/Tree World/leetcode_level_order_traversal.py rename to tutorials/Tree World/level_order_traversal.py index 1d0e0d6..fcc54dc 100644 --- a/tutorials/Tree World/leetcode_level_order_traversal.py +++ b/tutorials/Tree World/level_order_traversal.py @@ -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) diff --git a/tutorials/Tree World/leetcode_lowest_common_ancestor_od_a_binary_tree.py b/tutorials/Tree World/lowest_common_ancestor_of_binary_tree.py similarity index 92% rename from tutorials/Tree World/leetcode_lowest_common_ancestor_od_a_binary_tree.py rename to tutorials/Tree World/lowest_common_ancestor_of_binary_tree.py index ab0f865..eab8275 100644 --- a/tutorials/Tree World/leetcode_lowest_common_ancestor_od_a_binary_tree.py +++ b/tutorials/Tree World/lowest_common_ancestor_of_binary_tree.py @@ -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)