Commit c29c1946 authored by Giuseppe's avatar Giuseppe
Browse files

commit de test de test

parent e2339519
File added
{
"restructuredtext.confPath": ""
}
\ No newline at end of file
......@@ -20,10 +20,13 @@ class Board:
'''The main class to manage a go board.'''
def __init__(self, size: int) -> None:
'''Initialize an empty board of size*size intersections.'''
tableau = [[0 for i in range(19)] for j in range(19)]
raise NotImplementedError
def clear(self) -> None:
'''Clear all intersections such that they all become empty.'''
Intersection = namedtuple('Intersection', ['', ''])
raise NotImplementedError
def load(self, board_state: str) -> None:
......@@ -32,6 +35,9 @@ class Board:
board_state is a string that contains size*size characters (excluding spacing characters).
each character represents the color of an intersection ('-', 'b' or 'w').
'''
"-" = 0
"b" = 1
"w" = 2
raise NotImplementedError
def set_color(self, color: Color, x: int, y: int) -> None:
......@@ -40,6 +46,7 @@ class Board:
def color_at(self, x: int, y: int) -> Color:
'''Get the color of the (x,y) intersection of the board.'''
raise NotImplementedError
def stone_group_at(self, x: int, y: int) -> [Intersection]:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment