## vim: fileencoding=utf-8
class Board:
def __init__(self, size):
self.size = size
self.data = [[0 for i in range(size)]
for j in range(size)]
def draw(self):
for x in range(0, self.size):
for y in range(0, self.size):
if self.data[x][y] == 0:
print "+",
else:
print "●",
print
def sample(self):
self.data[0][0] = 1
self.data[2][3] = 1
b = Board(5)
b.sample()
b.draw()
IyMgdmltOiBmaWxlZW5jb2Rpbmc9dXRmLTgKCmNsYXNzIEJvYXJkOgogICAgZGVmIF9faW5pdF9fKHNlbGYsIHNpemUpOgogICAgICAgIHNlbGYuc2l6ZSA9IHNpemUKICAgICAgICBzZWxmLmRhdGEgPSBbWzAgZm9yIGkgaW4gcmFuZ2Uoc2l6ZSldCiAgICAgICAgICAgICAgICBmb3IgaiBpbiByYW5nZShzaXplKV0KICAgIGRlZiBkcmF3KHNlbGYpOgogICAgICAgIGZvciB4IGluIHJhbmdlKDAsIHNlbGYuc2l6ZSk6CiAgICAgICAgICAgIGZvciB5IGluIHJhbmdlKDAsIHNlbGYuc2l6ZSk6CiAgICAgICAgICAgICAgICBpZiBzZWxmLmRhdGFbeF1beV0gPT0gMDoKICAgICAgICAgICAgICAgICAgICBwcmludCAi77yLIiwKICAgICAgICAgICAgICAgIGVsc2U6CiAgICAgICAgICAgICAgICAgICAgcHJpbnQgIuKXjyIsCiAgICAgICAgICAgIHByaW50CgogICAgZGVmIHNhbXBsZShzZWxmKToKICAgICAgICBzZWxmLmRhdGFbMF1bMF0gPSAxCiAgICAgICAgc2VsZi5kYXRhWzJdWzNdID0gMQoKYiA9IEJvYXJkKDUpCmIuc2FtcGxlKCkKYi5kcmF3KCk=