-
Notifications
You must be signed in to change notification settings - Fork 0
Coding with Python
J0J0HA aka. JoJoJux edited this page Sep 23, 2022
·
6 revisions
This sheet shows you the function, what it does, and the parallels to pythonkara.
coati |
What it does | kara |
What it does in kara |
---|---|---|---|
.move() |
Move 1 field in the direction you are looking. | .move() |
~ |
.turn_left() |
Turn left. | .turnLeft() |
~ |
.turn_right() |
Turn right. | .turnRight() |
~ |
.put_worm() |
Spawn a worm at your current position | .putLeaf() |
~ (Worm -> Leaf) |
.remove_worm() |
Removes a worm at your current position | .removeLeaf() |
~ (Worm -> Leaf) |
.on_worm() |
Checks if there is a worm at your current position | .onLeaf() |
~ (Worm -> Leaf) |
.ball_front() |
Checks if there is a ball in front of you | .mushroomFront() |
~ (Ball -> Mushroom) |
.stone_front() |
Checks if there is a stone in front of you | .treeFront() |
~ (Stone -> Tree) |
.stone_left() |
Checks if there is a stone to your left | .treeLeft() |
~ (Stone -> Tree) |
.stone_right() |
Checks if there is a stone to your right | .treeRight() |
~ (Stone -> Tree) |
Since commit 1185f09 with import kara
instead of import coati
you are able to use the original kara commands. Notice that only the function-names change, not the design. It is planned to add different themes, so you can choose the 'kara'-Theme then.