diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2014-09-14 12:23:55 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2014-09-14 12:23:55 +0200 |
commit | aceb0d301274962289d62a41421e3cf0c8738053 (patch) | |
tree | 86e7594f568de60118a4c549d3b1e52b5725bac2 /qml/python/transformations.py | |
parent | 57ddb2dfff768d323f2dae0af56fc086a66b0044 (diff) |
Extract initial player from goban
Diffstat (limited to 'qml/python/transformations.py')
-rw-r--r-- | qml/python/transformations.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qml/python/transformations.py b/qml/python/transformations.py index adf0395..3bb9383 100644 --- a/qml/python/transformations.py +++ b/qml/python/transformations.py @@ -18,7 +18,7 @@ class Translation(object): """ return self.board.min_x != 0 or self.board.min_y != 0 - def apply_points(self, coord): + def apply_points(self, coord, name = None): """ Move the points to the lower position. """ x, y = coord @@ -56,7 +56,7 @@ class Rotation(object): return random.randint(0, 1) == 1 return should < 0 - def apply_points(self, coord): + def apply_points(self, coord, name = None): """ Apply the transformation on a point. """ x, y = coord @@ -93,7 +93,7 @@ class Symmetry(object): direction. """ return self.x_flip or self.y_flip - def apply_points(self, coord): + def apply_points(self, coord, name = None): """ Flip in both directions. """ x, y = coord |