Skip to content

Commit

Permalink
basic game
Browse files Browse the repository at this point in the history
  • Loading branch information
LordBaryhobal committed Feb 16, 2022
1 parent 50545d8 commit 08afff4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions 02_Amazing/amazing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import curses

def init(stdscr):
curses.noecho()
curses.cbreak()
stdscr.keypad(True)

def end(stdscr):
curses.nocbreak()
stdscr.keypad(False)
curses.echo()
curses.endwin()

def draw(maze):

if __name__ == '__main__':
stdscr = curses.initscr()
init(stdscr)

maze = generate_maze()

while True:
draw(maze)

end(stdscr)

0 comments on commit 08afff4

Please sign in to comment.