Module Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Import alias alias alias alias ImportFrom alias Assign NameStore TupleLoad Num Num Num Assign NameStore TupleLoad Num Num Num Assign NameStore TupleLoad Num Num Num Assign NameStore TupleLoad Num Num Num Assign NameStore TupleLoad Num Num Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body If CompareEq BinOpMod NameLoad Num Num body AugAssignAdd NameStore Num If CompareEq BinOpMod NameLoad Num Num body AugAssignAdd NameStore Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num AttributeLoad NameLoad attr body For NameStore Call NameLoad Num AttributeLoad NameLoad attr body If CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad For NameStore Call NameLoad Num AttributeLoad NameLoad attr body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Num While CompareLt NameLoad Num body Assign NameStore Num Assign NameStore Num If CompareEq NameLoad Num body Assign NameStore Num orelse If CompareEq NameLoad Num body Assign NameStore Num orelse If CompareEq NameLoad Num body Assign NameStore Num orelse Assign NameStore Num Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If BoolOpAnd CompareGt NameLoad Num CompareLt NameLoad AttributeLoad NameLoad attr CompareGt NameLoad Num CompareLt NameLoad AttributeLoad NameLoad attr body If BoolOpAnd CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpMod BinOpAdd NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Assign NameStore NameStore NameStore NameStore Num While SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub AttributeLoad NameLoad attr Num While BoolOpOr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad CompareEq NameLoad Num CompareLt Call NameLoad BinOpSub NameLoad NameLoad Call NameLoad BinOpDiv AttributeLoad NameLoad attr Num CompareLt Call NameLoad BinOpSub NameLoad NameLoad Call NameLoad BinOpDiv AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub AttributeLoad NameLoad attr Num Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameStore NameStore NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr While NameLoad body If NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict If CompareNotIn TupleLoad NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr NameLoad body If BoolOpOr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr Num orelse If CompareEq AttributeLoad NameLoad attr NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If CompareGt BinOpSub Call AttributeLoad NameLoad attr Num NameLoad body If BoolOpAnd NameLoad Call NameLoad NameLoad BinOpSub NameLoad Num CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index BinOpSub NameLoad Num Num body AugAssignSub NameStore Num orelse If BoolOpAnd NameLoad Call NameLoad NameLoad BinOpAdd NameLoad Num CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index BinOpAdd NameLoad Num Num body AugAssignAdd NameStore Num orelse If BoolOpAnd NameLoad Call NameLoad BinOpSub NameLoad Num NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num Index NameLoad Num body AugAssignSub NameStore Num orelse If BoolOpAnd NameLoad Call NameLoad BinOpAdd NameLoad Num NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Index NameLoad Num body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Assign NameStore NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign AttributeStore NameLoad attr TupleLoad BinOpSub AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd CompareGtE NameLoad Num CompareGtE NameLoad Num CompareLt NameLoad NameLoad CompareLt NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body If CompareNotEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareIn TupleLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A sys N/A os N/A N/A N/A N/A sys path append N/A N/A N/A os path abspath .. N/A pygcurse pygame random time pygame.locals * N/A BLUE N/A 0 0 128 N/A YELLOW N/A 255 255 0 N/A GREEN N/A 0 255 0 N/A BLACK N/A 0 0 0 N/A RED N/A 255 0 0 N/A MAZE_WIDTH 41 N/A MAZE_HEIGHT 41 N/A FPS 40 N/A win N/A N/A pygcurse PygcurseWindow MAZE_WIDTH MAZE_HEIGHT fullscreen False N/A N/A N/A N/A pygame display set_caption Pygcurse Maze N/A N/A win autowindowupdate False N/A N/A win autoupdate False JoeWingMaze N/A N/A __init__ N/A N/A self width height N/A 21 21 N/A N/A N/A N/A width 2 0 N/A N/A width 1 N/A N/A N/A height 2 0 N/A N/A height 1 N/A N/A self width width N/A N/A self height height N/A N/A self maze N/A dict N/A N/A N/A self init_maze N/A N/A N/A self generate_maze N/A display_maze N/A N/A self N/A N/A N/A y N/A range 0 N/A self height N/A N/A x N/A range 0 N/A self width N/A N/A N/A N/A N/A N/A self maze N/A x N/A y 0 N/A N/A N/A N/A N/A sys stdout write N/A N/A N/A N/A N/A sys stdout write # N/A N/A N/A N/A sys stdout write N/A init_maze N/A N/A self N/A N/A N/A x N/A range 0 N/A self width N/A N/A N/A N/A self maze N/A x N/A dict N/A y N/A range 0 N/A self height N/A N/A N/A N/A N/A self maze N/A x N/A y 1 N/A carve_maze N/A N/A self x y N/A N/A N/A dir N/A N/A random randint 0 3 N/A count 0 N/A N/A count 4 N/A N/A dx 0 N/A dy 0 N/A N/A dir 0 N/A N/A dx 1 N/A N/A N/A dir 1 N/A N/A dy 1 N/A N/A N/A dir 2 N/A N/A dx -1 N/A N/A dy -1 N/A x1 N/A x dx N/A y1 N/A y dy N/A x2 N/A x1 dx N/A y2 N/A y1 dy N/A N/A N/A x2 0 N/A x2 N/A self width N/A y2 0 N/A y2 N/A self height N/A N/A N/A N/A N/A N/A N/A self maze N/A x1 N/A y1 1 N/A N/A N/A N/A self maze N/A x2 N/A y2 1 N/A N/A N/A N/A N/A self maze N/A x1 N/A y1 0 N/A N/A N/A N/A self maze N/A x2 N/A y2 0 N/A N/A N/A self carve_maze x2 y2 N/A count N/A count 1 N/A dir N/A N/A dir 1 4 N/A generate_maze N/A N/A self N/A N/A N/A N/A N/A random seed N/A N/A N/A self carve_maze 1 1 N/A startx starty endx endy 0 N/A N/A N/A N/A self maze N/A startx N/A starty N/A N/A startx N/A N/A random randint 1 N/A N/A self width 2 N/A starty N/A N/A random randint 1 N/A N/A self height 2 N/A N/A N/A N/A N/A self maze N/A endx N/A endy N/A endx 0 N/A N/A abs N/A startx endx N/A int N/A N/A self width 3 N/A N/A abs N/A starty endy N/A int N/A N/A self height 3 N/A N/A endx N/A N/A random randint 1 N/A N/A self width 2 N/A endy N/A N/A random randint 1 N/A N/A self height 2 N/A N/A N/A N/A self maze N/A startx N/A starty 0 N/A N/A N/A N/A self maze N/A endx N/A endy 0 N/A N/A self startx startx N/A N/A self starty starty N/A N/A self endx endx N/A N/A self endy endy N/A N/A main N/A N/A N/A N/A N/A newGame True N/A solved False N/A moveLeft moveRight moveUp moveDown False N/A lastmovetime N/A sys maxsize N/A mainClock N/A N/A N/A pygame time Clock N/A True N/A N/A newGame N/A N/A newGame False N/A jwmaze N/A JoeWingMaze MAZE_WIDTH MAZE_HEIGHT N/A maze N/A jwmaze maze N/A solved False N/A N/A playerx playery N/A N/A jwmaze startx N/A jwmaze starty N/A N/A endx endy N/A N/A jwmaze endx N/A jwmaze endy N/A breadcrumbs N/A N/A N/A N/A playerx playery breadcrumbs N/A N/A N/A breadcrumbs N/A N/A playerx playery True N/A event N/A N/A N/A pygame event get N/A N/A N/A N/A event type QUIT N/A N/A N/A N/A pygame quit N/A N/A N/A sys exit N/A N/A N/A N/A event type KEYDOWN N/A N/A N/A solved N/A N/A event key K_BACKSPACE N/A N/A newGame True N/A N/A N/A N/A event key K_ESCAPE N/A N/A N/A N/A pygame quit N/A N/A N/A sys exit N/A N/A N/A N/A event key K_UP N/A N/A moveUp True N/A moveDown False N/A N/A N/A N/A event key K_DOWN N/A N/A moveDown True N/A moveUp False N/A N/A N/A N/A event key K_LEFT N/A N/A moveLeft True N/A moveRight False N/A N/A N/A N/A event key K_RIGHT N/A N/A moveRight True N/A moveLeft False N/A lastmovetime N/A N/A N/A time time 1 N/A N/A N/A N/A event type KEYUP N/A N/A N/A N/A event key K_UP N/A N/A moveUp False N/A N/A N/A N/A event key K_DOWN N/A N/A moveDown False N/A N/A N/A N/A event key K_LEFT N/A N/A moveLeft False N/A N/A N/A N/A event key K_RIGHT N/A N/A moveRight False N/A N/A N/A N/A N/A time time 0.05 lastmovetime N/A N/A N/A moveUp N/A isOnBoard playerx N/A playery 1 N/A N/A N/A maze N/A playerx N/A N/A playery 1 0 N/A N/A playery 1 N/A N/A N/A moveDown N/A isOnBoard playerx N/A playery 1 N/A N/A N/A maze N/A playerx N/A N/A playery 1 0 N/A N/A playery 1 N/A N/A N/A moveLeft N/A isOnBoard N/A playerx 1 playery N/A N/A N/A maze N/A N/A playerx 1 N/A playery 0 N/A N/A playerx 1 N/A N/A N/A moveRight N/A isOnBoard N/A playerx 1 playery N/A N/A N/A maze N/A N/A playerx 1 N/A playery 0 N/A N/A playerx 1 N/A lastmovetime N/A N/A time time N/A N/A N/A playerx endx N/A playery endy N/A N/A solved True N/A N/A drawMaze win maze breadcrumbs N/A solved N/A N/A N/A win cursor N/A N/A N/A win centerx 4 N/A win centery N/A N/A N/A win write Solved! fgcolor YELLOW bgcolor RED N/A moveLeft moveRight moveUp moveDown False N/A N/A N/A win putchar @ playerx playery RED BLACK N/A N/A N/A win putchar O N/A jwmaze endx N/A jwmaze endy GREEN BLACK N/A N/A N/A win update N/A N/A N/A N/A pygame display update N/A N/A N/A mainClock tick FPS N/A isOnBoard N/A N/A x y N/A N/A N/A N/A N/A x 0 N/A y 0 N/A x MAZE_WIDTH N/A y MAZE_HEIGHT N/A drawMaze N/A N/A win maze breadcrumbs N/A N/A N/A x N/A range MAZE_WIDTH N/A N/A y N/A range MAZE_HEIGHT N/A N/A N/A N/A N/A maze N/A x N/A y 0 N/A N/A N/A N/A win paint x y BLUE N/A N/A N/A N/A win paint x y BLACK N/A N/A N/A x y breadcrumbs N/A N/A N/A N/A win putchar . x y RED BLACK N/A N/A N/A __name__ __main__ N/A N/A N/A main