Commit ec25d536 authored by The Heavy's avatar The Heavy 🚂
Browse files

writing

parent be559226
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -40,12 +40,16 @@ def main(stdscr):
    stdscr.keypad(True)
    while plant.colour > -100:
        time.sleep(1)
        print(
        stdscr.addstr(3, 3,
                      "height: {0}; water: {1}; food: {2}; colour: {3};".format(plant.height, plant.water, plant.food,
                                                                                plant.colour))
        stdscr.refresh()
        plant.grow()
    print("it died")
    stdscr.addstr(4, 3, "It died")
    stdscr.refresh()
    time.sleep(1)
    return


if __name__ == "__main__":
    curses.wrapper(main)