Removed some deprecated code

This commit is contained in:
2012-04-19 01:48:45 -04:00
parent 0e48b1249d
commit 794fb23d5f
2 changed files with 0 additions and 299 deletions

View File

@ -313,74 +313,6 @@ class Goban:
# def draw_board(self, size, img_res):
# ret = pygame.Surface((size,size))
# inc = size / self.board_size;
# for pos in range(len(self.board)):
# point = self.board[pos]
# if point == Goban.EMPTY:
# code = self.def_draw_codes[pos]
# elif point == Goban.BLACK:
# code = 'b'
# elif point == Goban.WHITE:
# code = 'w'
# if pos == self.last_move:
# code = code + 'T'
# if pos == self.ko:
# code = code + 'C'
# s = img_res[code]
# s = pygame.transform.scale(s, (inc, inc))
# ret.blit(s, ((pos % self.board_size) *inc, (pos / self.board_size) *inc))
# if self.hover == pos:
# c = img_res['bH']
# if self.to_move == Goban.WHITE:
# c = img_res['wH']
# c = pygame.transform.scale(c, (inc, inc))
# ret.blit(c, ((pos % self.board_size) *inc, (pos / self.board_size) *inc))
# return ret.convert_alpha()
# def draw_info(self):
# textbox = pygame.Surface((150, 300))
# textbox = textbox.convert()
# textbox.fill((250, 250, 250))
# font = pygame.font.Font(None, 24)
# # time = font.render('Time: {:02d}:{:02d}'.format(self.elapsed_time / 60, self.elapsed_time % 60), 1, (10, 10, 10))
# heading = font.render('Captures', 1, (10, 10, 10))
# black_cap = font.render('Black: {}'.format(self.black_captures), 1, (10, 10, 10))
# white_cap = font.render('White: {}'.format(self.white_captures), 1, (10, 10, 10))
# if self.to_move == Goban.BLACK:
# turn = font.render('To move: Black', 1, (10, 10, 10))
# elif self.to_move == Goban.WHITE:
# turn = font.render('To move: White', 1, (10, 10, 10))
# else:
# if self.winner == Goban.WHITE:
# turn = font.render('Winner: White', 1, (10, 10, 10))
# elif self.winner == Goban.BLACK:
# turn = font.render('Winner: Black', 1, (10, 10, 10))
# else:
# turn = font.render('Scoring', 1, (10, 10, 10))
# textbox.blit(heading, (0, 0))
# textbox.blit(black_cap, (0, 28))
# textbox.blit(white_cap, (0, 56))
# textbox.blit(turn, (0, 100))
# # textbox.blit(time, (0, 150))
# return textbox
def _make_default_draw_codes(self):
ret = []