Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restyle trace functions #2135

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2133-show-functions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 1
name: Show functions
description: |
Show functions
creative: false
objectives:
- teaser: Follow buddy
goal:
- You and your buddy each have half of a map to a cache of buried treasure.
- |
`give` him your `map piece`{=entity}, which he will use to
locate the `bitcoin`{=entity}, which you must `grab`.
condition: |
as base {
has "bitcoin";
}
robots:
- name: base
dir: east
devices:
- ADT calculator
- antenna
- branch predictor
- comparator
- compass
- dictionary
- grabber
- hourglass
- logger
- treads
- name: rat
dir: west
system: true
display:
invisible: false
devices:
- logger
program: |
run "data/scenarios/Testing/2133-robot-function-tracing/_2133-show-functions/rat.sw"
known: [bitcoin]
world:
dsl: |
{grass}
palette:
'B': [blank, null, base]
'r': [blank, null, rat]
'.': [blank]
upperleft: [-1, 0]
map: |
B.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
def doWalk =
move;
move;
move;
end;

def doTurn =
turn left;
end;

def runSomeFunction = \f.
f;
end;

def go =
doWalk;
wait 2;
runSomeFunction doTurn;
wait 2;
go;
end;

go;
Loading