Last active
August 29, 2015 14:01
-
-
Save Profpatsch/ea67290f3c734c199b17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Pattern: | |
_points = set() | |
def _init__(self, points): | |
self._points = points | |
class Circle(Pattern): | |
def __init__(self, r): | |
ps = set() | |
# compute every point for that radius | |
# ……… | |
self._points = ps | |
def combine(pattern1, pattern2): | |
return Pattern(pattern1.union(pattern2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment