def drawGrid(self):
for cell in self.grid:<EOL><INDENT>y, x = cell<EOL>y += self.y_pad<EOL>x += self.x_pad<EOL>if self.traditional:<EOL><INDENT>sprite = '<STR_LIT:.>'<EOL>color = curses.color_pair(<NUM_LIT:4>)<EOL><DEDENT>else:<EOL><INDENT>sprite = self.char[self.grid[cell] - <NUM_LIT:1>]<EOL>color = curses.color_pair(self.grid[cell])<EOL><DEDENT>self.addchar(y, x, sprite, color)<EOL><DEDENT>self.win.refresh()<EOL>
Redraw the grid with the new generation