-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grant
RobotIntoWater
achievement (#1504)
Towards #1435. Some refactoring, + grant `RobotIntoWater` achievement when a robot dies in the water.
- Loading branch information
Showing
5 changed files
with
111 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RobotIntoWater.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: 1 | ||
name: RobotIntoWater achievement test | ||
description: Drive a robot into the water | ||
objectives: | ||
- id: build | ||
goal: | ||
- Build a robot | ||
condition: | | ||
try {robotNumbered 1; return True} {return False} | ||
- goal: | ||
- Drown it | ||
prerequisite: build | ||
condition: | | ||
try {robotNumbered 1; return False} {return True} | ||
solution: | | ||
build { turn right; move; move; move } | ||
robots: | ||
- name: base | ||
loc: [0,0] | ||
dir: [0,1] | ||
heavy: true | ||
display: | ||
char: Ω | ||
attr: robot | ||
devices: | ||
- 3D printer | ||
- dictionary | ||
- grabber | ||
- welder | ||
- life support system | ||
- logger | ||
- toolkit | ||
- solar panel | ||
- workbench | ||
- clock | ||
inventory: | ||
- [5, 3D printer] | ||
- [100, treads] | ||
- [70, grabber] | ||
- [100, solar panel] | ||
- [50, scanner] | ||
- [50, clock] | ||
- [5, toolkit] | ||
seed: 0 | ||
world: | ||
offset: true | ||
dsl: | | ||
"classic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters