Initialize the database and establish the game loop.
()
| 767 | |
| 768 | |
| 769 | def main(): |
| 770 | """Initialize the database and establish the game loop.""" |
| 771 | |
| 772 | e = create_engine("sqlite://") |
| 773 | Base.metadata.create_all(e) |
| 774 | session = Session(e) |
| 775 | init_glyph(session) |
| 776 | session.commit() |
| 777 | window = setup_curses() |
| 778 | state = {} |
| 779 | start(session, window, state) |
| 780 | while True: |
| 781 | update_state(session, window, state) |
| 782 | draw(session, window, state) |
| 783 | time.sleep(0.01) |
| 784 | |
| 785 | |
| 786 | if __name__ == "__main__": |
no test coverage detected