Skip to content

Commit

Permalink
address test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Jan 12, 2023
1 parent cc8614e commit 303530c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
22 changes: 19 additions & 3 deletions data/scenarios/Challenges/word-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ objectives:
condition: |
as base {knows "capital C"};
- goal:
- Use the `drill` command to mark the sequence of letters that
- Use the `drill` command (e.g. "drill down" when on top of the
intended letter) to mark the sequence of letters that
spells COW within the designated playfield.
- |
The sequence may appear horizontally in either the
Expand Down Expand Up @@ -114,7 +115,6 @@ robots:
- comparator
- counter
- dictionary
- grabber
- lambda
- logger
- mirror
Expand All @@ -137,7 +137,23 @@ robots:
program: |
run "scenarios/Challenges/_word-search/create-puzzle.sw"
solution: |
run "scenarios/Challenges/_word-search/solution.sw"
// Hard-coded for seed=3:
def waitUntilUnblocked =
x <- blocked;
if x {
wait 1;
waitUntilUnblocked;
} {};
end;
waitUntilUnblocked;
move; move; move; move; move; move; move; move;
turn left;
drill down;
move;
drill down;
move;
drill down;
// run "scenarios/Challenges/_word-search/solution.sw"
entities:
- name: capital C
display:
Expand Down
2 changes: 1 addition & 1 deletion test/integration/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ testScenarioSolution _ci _em =
[ testSolution Default "Challenges/chess_horse"
, testSolution Default "Challenges/teleport"
, testSolution (Sec 5) "Challenges/2048"
, testSolution Default "Challenges/word-search"
, testSolution (Sec 3) "Challenges/word-search"
, testSolution (Sec 10) "Challenges/hanoi"
, testSolution Default "Challenges/friend"
, testGroup
Expand Down

0 comments on commit 303530c

Please sign in to comment.