Skip to content

Commit

Permalink
Update hoc22.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
neonerz committed Apr 26, 2022
1 parent 443e9c7 commit 1a1fc4b
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions hoc22.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,6 @@ enum Weight {
COW
}

enum Direction {
//% block=up alias=UP
Up,
//% block=down alias=DOWN
Down,
//% block=left alias=LEFT
Left,
//% block=right alias=RIGHT
Right
}


enum ColoredBlocks {
//% blockIdentity="blocks.block" enumval=262380 block="yellow"
Expand Down Expand Up @@ -72,8 +61,8 @@ namespace hoc22 {
* Agent Move (POC1-c)
*/
//% block="agent move %d by %n"
export function agentMove(d: Direction, n: number): void {
const Direction = directions[d];
agent.move(Direction, 1)
export function agentMove(d: SixDirection, n: number): void {
//const direction = directions[d];
agent.move(d, 1)
}
}

0 comments on commit 1a1fc4b

Please sign in to comment.