forked from ReWrite-Media/hoc2020-md
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
38 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 |
---|---|---|
@@ -1,24 +1,12 @@ | ||
// Add your code here | ||
|
||
enum Direction { | ||
//% block="forward" | ||
Forward, | ||
//% block="back" | ||
Back, | ||
//% block="left" | ||
Left, | ||
//% block="right" | ||
Right | ||
} | ||
//% block="HOC 2020" weight=200 color=#00a513 icon="" | ||
namespace hoc2020 { | ||
|
||
/** | ||
* Agent Interact Forward | ||
*/ | ||
//% block="Flip Lever" | ||
export function flipLever() { | ||
agent.interact(FORWARD) | ||
} | ||
|
||
//% block="HOC 2020" weight=200 color=#00a513 | ||
namespace hoc2020 { | ||
|
||
/** | ||
* Agent Interact Forward | ||
*/ | ||
//% block="Flip Lever" | ||
export function flipLever() { | ||
agent.interact(FORWARD) | ||
} | ||
|
||
} |