def draw_heap(self): """Draw the block remnant heap on the curses display.""" for coord_y, coord_x, color in self.heap.contents(): curses_draw_spot(self.win, coord_y, coord_x, color)
def draw_active_block(self): """Draw the active block on the curses display.""" color = self.active_block.color for coord_y, coord_x in self.active_block.coords(): curses_draw_spot(self.win, coord_y, coord_x, color)