Skip to content

Commit 20d3fdd

Browse files
committed
Add time limit for maze
1 parent a796139 commit 20d3fdd

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.gitignore

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
# ensure this file is tracked
66
!.gitignore
77

8-
# don't track unpublished builds or stage
8+
# don't track unpublished builds or stage (note: Runestone uses `published`)
99
output
10+
published
1011

1112
# don't track assets generated from source
1213
generated-assets
@@ -51,12 +52,23 @@ ehthumbs_vista.db
5152
.fuse_hidden*
5253
.Trash-*
5354
.nfs*
55+
.cache
56+
__pycache__
5457

5558
# Don't include VSCode generated files
5659
.vscode
5760
*.code-workspace
58-
59-
# Don't inlucde SublimeText files
61+
.nova
62+
*.log
63+
*.bak
64+
build.out
65+
build_info
66+
build_success
67+
sync_success
68+
sphinx_settings.json
69+
rs-substitutes.xml
70+
71+
# Don't include SublimeText files
6072
# Cache files for Sublime Text
6173
*.tmlanguage.cache
6274
*.tmPreferences.cache
@@ -97,3 +109,7 @@ GitHub.sublime-settings
97109

98110
# Don't track codechat config (will be generated automatically)
99111
codechat_config.yaml
112+
113+
# Don't track deprecated workflows
114+
.github/workflows/deploy.yml
115+
.github/workflows/test-build.yml

pretext/Recursion/ExploringaMaze.ptx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ def search_from(maze, row, column):
281281
<listing xml:id="recursion_completemaze"><program label="recursion_completemaze" interactive="activecode" language="python">
282282
<input>
283283
import turtle
284+
import sys
284285

285286
START = "S"
286287
OBSTACLE = "+"
@@ -417,6 +418,7 @@ def search_from(maze, start_row, start_column):
417418

418419
my_maze = Maze("maze2.txt")
419420
my_maze.draw_maze()
421+
sys.setExecutionLimit(100000)
420422
my_maze.update_position(my_maze.start_row, my_maze.start_col)
421423

422424
search_from(my_maze, my_maze.start_row, my_maze.start_col)

0 commit comments

Comments
 (0)