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