def print(self, x, y, string, c=None):
    "Print `string` at coordinates `x`, `y`.\n\n        Parameters\n        ----------\n        x : int\n            Horizontal position at which to print the string.\n        y : int\n            Height at which to print the string.\n        string : str\n            The string to print.\n        c : str, {None, 'black', 'yellow', 'green', 'red'}\n            The color in which to print.  Must be one of\n            ['black', 'yellow', 'green', 'red'] or None. If `c` is None, it should\n            print in the default color pair.\n        "
    if (c is None):
        self.stdscr.addstr(y, x, string)
    elif (c == 'black'):
        self.stdscr.addstr(y, x, string, curses.color_pair(1))
    elif (c == 'yellow'):
        self.stdscr.addstr(y, x, string, curses.color_pair(2))
    elif (c == 'green'):
        self.stdscr.addstr(y, x, string, curses.color_pair(3))
    elif (c == 'red'):
        self.stdscr.addstr(y, x, string, curses.color_pair(4))
    else:
        raise ValueError("`c` must be one of ['black', 'yellow', 'green', 'red'] or none.")
Print `string` at coordinates `x`, `y`.

Parameters
----------
x : int
    Horizontal position at which to print the string.
y : int
    Height at which to print the string.
string : str
    The string to print.
c : str, {None, 'black', 'yellow', 'green', 'red'}
    The color in which to print.  Must be one of
    ['black', 'yellow', 'green', 'red'] or None. If `c` is None, it should
    print in the default color pair.
def print(self, x, y, string, c=None):
    "Print `string` at coordinates `x`, `y`.\n\n        Parameters\n        ----------\n        x : int\n            Horizontal position at which to print the string.\n        y : int\n            Height at which to print the string.\n        string : str\n            The string to print.\n        c : str, {None, 'black', 'yellow', 'green', 'red'}\n            The color in which to print.  Must be one of\n            ['black', 'yellow', 'green', 'red'] or None. If `c` is None, it should\n            print in the default color pair.\n        "
    if (c is None):
        self.stdscr.addstr(y, x, string)
    elif (c == 'black'):
        self.stdscr.addstr(y, x, string, curses.color_pair(1))
    elif (c == 'yellow'):
        self.stdscr.addstr(y, x, string, curses.color_pair(2))
    elif (c == 'green'):
        self.stdscr.addstr(y, x, string, curses.color_pair(3))
    elif (c == 'red'):
        self.stdscr.addstr(y, x, string, curses.color_pair(4))
    else:
        raise ValueError("`c` must be one of ['black', 'yellow', 'green', 'red'] or none.")