Sha256: b8a937faeb72e585f7190c8759e363d23fd3006e5c96d5f087cd4274b6bbd6d5

Contents?: true

Size: 1.01 KB

Versions: 65

Compression:

Stored size: 1.01 KB

Contents

class Board:
    """Count territories of each player in a Go game

    Args:
        board (list[str]): A two-dimensional Go board
    """

    def __init__(self, board):
        pass

    def territoryFor(self, coord):
        """Find the owner and the territories given a coordinate on
           the board

        Args:
            coord ((int,int)): Coordinate on the board

        Returns:
            (str, set): A tuple, the first element being the owner
                        of that area.  One of "W", "B", "".  The
                        second being a set of coordinates, representing
                        the owner's territories.
        """
        pass

    def territories(self):
        """Find the owners and the territories of the whole board

        Args:
            none

        Returns:
            dict(str, set): A dictionary whose key being the owner
                        , i.e. "W", "B", "".  The value being a set
                        of coordinates owned by the owner.
        """
        pass

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
trackler-2.2.1.127 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.126 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.125 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.124 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.123 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.122 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.121 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.120 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.119 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.118 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.117 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.116 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.115 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.114 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.113 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.111 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.110 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.109 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.108 tracks/python/exercises/go-counting/go_counting.py
trackler-2.2.1.107 tracks/python/exercises/go-counting/go_counting.py