Sha256: 390717476be770ecdd45a93bdada03c8e76e36430a0142c89f02eb8d5b16e708
Contents?: true
Size: 620 Bytes
Versions: 396
Compression:
Stored size: 620 Bytes
Contents
## Hints To complete this exercise, you need to implement the following functions: - `territories` returns the coordinates (1 based, top left is (1,1)) of the points in each territory along with who "owns" the territory. - `territoriesFor` returns the territory that contains the coordinate along with the owner of the territory. If the coordinate does not point to an empty location, returns *Nothing*. A territory is owned by one of the players if that player's stones are the only stones adjacent to the territory. You will find the type signatures already in place, but it is up to you to define the functions.
Version data entries
396 entries across 396 versions & 1 rubygems