diff options
author | Marion <marion.zepf@gmail.com> | 2013-07-03 13:37:09 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-07-03 13:37:09 (GMT) |
commit | 3db37b0d6803cee9eeee3967e3ba4c183fd25c92 (patch) | |
tree | 1a469b0b1cf37cfb7e540dab6c62d8ae0c131516 | |
parent | 20795e5eb541fc5737b0f86b9328348416c227fd (diff) |
add two methods to Turtle to get the coordinates independently of each other
-rw-r--r-- | TurtleArt/taturtle.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/TurtleArt/taturtle.py b/TurtleArt/taturtle.py index 030d58d..970b39a 100644 --- a/TurtleArt/taturtle.py +++ b/TurtleArt/taturtle.py @@ -698,6 +698,12 @@ class Turtle: def get_xy(self): return [self._x, self._y] + + def get_x(self): + return self._x + + def get_y(self): + return self._y def get_heading(self): return self._heading |