Sha256: b3f75ac80801d4c162db685609f06c80503c6ad19f3bd54e357b8cb307aecb29

Contents?: true

Size: 614 Bytes

Versions: 223

Compression:

Stored size: 614 Bytes

Contents

class Point(object):
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def __repr__(self):
        return 'Point({}:{})'.format(self.x, self.y)

    def __add__(self, other):
        return Point(self.x + other.x, self.y + other.y)

    def __sub__(self, other):
        return Point(self.x - other.x, self.y - other.y)

    def __eq__(self, other):
        return self.x == other.x and self.y == other.y

    def __ne__(self, other):
        return not(self == other)


class WordSearch(object):
    def __init__(self, puzzle):
        pass

    def search(self, word):
        return None

Version data entries

223 entries across 223 versions & 1 rubygems

Version Path
trackler-2.2.1.7 tracks/python/exercises/word-search/word_search.py
trackler-2.2.1.6 tracks/python/exercises/word-search/word_search.py
trackler-2.2.1.5 tracks/python/exercises/word-search/word_search.py
trackler-2.2.1.4 tracks/python/exercises/word-search/word_search.py
trackler-2.2.1.3 tracks/python/exercises/word-search/word_search.py
trackler-2.2.1.2 tracks/python/exercises/word-search/word_search.py
trackler-2.2.1.1 tracks/python/exercises/word-search/word_search.py
trackler-2.2.1.0 tracks/python/exercises/word-search/word_search.py
trackler-2.2.0.6 tracks/python/exercises/word-search/word_search.py
trackler-2.2.0.5 tracks/python/exercises/word-search/word_search.py
trackler-2.2.0.4 tracks/python/exercises/word-search/word_search.py
trackler-2.2.0.3 tracks/python/exercises/word-search/word_search.py
trackler-2.2.0.2 tracks/python/exercises/word-search/word_search.py
trackler-2.2.0.1 tracks/python/exercises/word-search/word_search.py
trackler-2.2.0.0 tracks/python/exercises/word-search/word_search.py
trackler-2.1.0.55 tracks/python/exercises/word-search/word_search.py
trackler-2.1.0.54 tracks/python/exercises/word-search/word_search.py
trackler-2.1.0.53 tracks/python/exercises/word-search/word_search.py
trackler-2.1.0.52 tracks/python/exercises/word-search/word_search.py
trackler-2.1.0.51 tracks/python/exercises/word-search/word_search.py