From aceb0d301274962289d62a41421e3cf0c8738053 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 14 Sep 2014 12:23:55 +0200 Subject: Extract initial player from goban --- qml/python/transformations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qml/python/transformations.py') 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 -- cgit v1.2.3