'Create a new LifeBoard instance.
scr -- curses screen object to use for display
char -- character used to render live cells (default: \'*\')'

def __init__(self, scr, char=ord('*')):

    self.state = {}
    self.scr = scr
    (Y, X) = self.scr.getmaxyx()
    (self.X, self.Y) = ((X - 2), ((Y - 2) - 1))
    self.char = char
    self.scr.clear()
    border_line = (('+' + (self.X * '-')) + '+')
    self.scr.addstr(0, 0, border_line)
    self.scr.addstr((self.Y + 1), 0, border_line)
    for y in range(0, self.Y):
        self.scr.addstr((1 + y), 0, '|')
        self.scr.addstr((1 + y), (self.X + 1), '|')
    self.scr.refresh()
