def print_pos(self, coordinates=None, pos=None):
if not pos:<EOL><INDENT>pos = self.pos<EOL><DEDENT>self.graph = [list(map(self._transform, pos[i])) for i in self.pos_range]<EOL>xaxis = '<STR_LIT:U+0020>'.join([chr(ASC_ONE + _) for _ in range(min(self.board_size, MAX_NUM))])<EOL>if (self.board_size > MAX_NUM):<EOL><INDENT>xaxis += '<STR_LIT:U+0020>'<EOL>xaxis += '<STR_LIT:U+0020>'.join([chr(ASC_A + _ - MAX_NUM) for _ in range(MAX_NUM, min(self.board_size, MAX_CAP))])<EOL><DEDENT>if (self.board_size > MAX_CAP):<EOL><INDENT>xaxis += '<STR_LIT:U+0020>'<EOL>xaxis += '<STR_LIT:U+0020>'.join([chr(ASC_a + _ - MAX_CAP) for _ in range(MAX_CAP, self.board_size)])<EOL><DEDENT>print('<STR_LIT:U+0020>', end='<STR_LIT>')<EOL>print(xaxis)<EOL>for i in range(self.board_size):<EOL><INDENT>out = '<STR_LIT:|>'.join(self.graph[i])<EOL>if i < MAX_NUM:<EOL><INDENT>print(chr(i + ASC_ONE), end='<STR_LIT>')<EOL><DEDENT>elif MAX_NUM <= i < MAX_CAP:<EOL><INDENT>print(chr(i - MAX_NUM + ASC_A), end='<STR_LIT>')<EOL><DEDENT>elif MAX_CAP <= i < MAX_LOW:<EOL><INDENT>print(chr(i - MAX_CAP + ASC_a), end='<STR_LIT>')<EOL><DEDENT>print('<STR_LIT:|>', end='<STR_LIT>')<EOL>if coordinates:<EOL><INDENT>for j in range(self.board_size):<EOL><INDENT>if (i, j) in coordinates:<EOL><INDENT>new_print = cprint<EOL>params = {<EOL>'<STR_LIT>': '<STR_LIT:w>',<EOL>'<STR_LIT>': '<STR_LIT:r>',<EOL>}<EOL><DEDENT>else:<EOL><INDENT>new_print = print<EOL>params = {}<EOL><DEDENT>new_print(self._transform(pos[i][j]), end='<STR_LIT>', **params)<EOL>print('<STR_LIT:|>', end='<STR_LIT>') <EOL><DEDENT>else:<EOL><INDENT>print()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>print(out, end='<STR_LIT>')<EOL>print('<STR_LIT:|>')<EOL><DEDENT><DEDENT>
Print the chessboard