Skip to content

Commit

Permalink
Make logging intangible (#2049)
Browse files Browse the repository at this point in the history
Closes #1991.
  • Loading branch information
noahyor authored Jul 17, 2024
1 parent 952b7b9 commit e16283a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions data/scenarios/Testing/475-wait-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ objectives:
ishere "lambda"
} { return false }
solution: |
log "I will win next tick!"; place "lambda";
log "I will win next tick!"; wait 1; place "lambda";
robots:
- name: base
loc: [0, 0]
dir: east
devices:
- logger
- grabber
- clock
inventory:
- [1, lambda]
- name: sleeper
Expand All @@ -30,7 +31,7 @@ robots:
- logger
- clock
program: |
log "I shall sleep"; wait 1; log "I have awoken"
log "I shall sleep"; wait 2; log "I have awoken"
world:
palette:
'.': [grass]
Expand Down
2 changes: 1 addition & 1 deletion src/swarm-lang/Swarm/Language/Syntax/Constants.hs
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ constInfo c = case c of
<> "that is done automatically once you have a listening device equipped."
, "Note that you can see the messages either in your logger device or the message panel."
]
Log -> command 1 short $ shortDoc (Set.singleton $ Mutation LogEmission) "Log the string in the robot's logger."
Log -> command 1 Intangible $ shortDoc (Set.singleton $ Mutation LogEmission) "Log the string in the robot's logger."
View ->
command 1 short . doc (Set.singleton $ Query $ Sensing RobotSensing) "View the given actor." $
[ "This will recenter the map on the target robot and allow its inventory and logs to be inspected."
Expand Down

0 comments on commit e16283a

Please sign in to comment.