소스 검색

fix rotate function

tBKwtWS 1 개월 전
부모
커밋
27500ef32f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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":