Turtle Specifications
I will keep this post up-to-date as decisions are made.
Implemented:
Parameters:
@SPEED, @DIR, @HOME, @FENCE, @X, @Y, @POS, @,
@FX1, @FY1, @FX2, @FY2, @HX, @HY
Movement Modes:
@BUMP @WRAP @BOUNCE
Movement:
@N, @S, @E, @W, @TURN, @STEP, @FWD, @REV, @HOME
Planned:
@BACK (counterpart to @STEP)
Proposed
@UNDO stack
@ACCEL, @FRIC, @GO, @STOP (automatic movement)
@GOSCRIPT (script to call when cell position changes)
@SPEED N D (numerator / denominator)
@COPY, @PASTE, @SWAP (internal storage)
@BOUNCETURN (turn x degrees after hitting wall but before going forward)
Behaviour questions:
- When a user adjusts a fence, should it follow BUMP logic or the current mode? i.e.: can you “swat” the turtle with the fence or do you just keep him in bounds?
- More to come, I’m sure
Problems with operators:
- I can’t make
@HOME be both a 2-argument setter and a 0 argument command, I don’t think.