Ver código fonte

fix rotate function

tBKwtWS 1 mês atrás
pai
commit
27500ef32f
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      karel_asset.py

+ 2 - 2
karel_asset.py

@@ -177,7 +177,7 @@ def rotate_asset(asset, direction):
             if direction == "right":
                 asset[1][4] = "north"
             if direction == "left":
-                asset[1][4] = "soutch"
+                asset[1][4] = "south"
         elif asset[1][4] == "west-flipped":
             if direction == "right":
                 asset[1][4] = "north-flipped"
@@ -190,7 +190,7 @@ def rotate_asset(asset, direction):
                 asset[1][4] = "west"
             if direction == "left":
                 asset[1][4] = "east"
-        elif asset[1][4] == "north-flipped":
+        elif asset[1][4] == "south-flipped":
             if direction == "right":
                 asset[1][4] = "west-flipped"
             if direction == "left":