home! should reset orientation, not just location #85

Closed
opened 2024-06-17 19:49:14 +00:00 by scott · 4 comments
Owner
No description provided.
Author
Owner

Is this right? I think there's probably a reason to have home!, reset!, and clear! turtle commands:

  • home! brings the turtle back to the origin
  • reset! brings the turtle back to the origin AND sets the heading to 0
  • clear! does a reset! and sets bg! and pc! to black and white, respectively.
Is this right? I think there's probably a reason to have `home!`, `reset!`, and `clear!` turtle commands: * `home!` brings the turtle back to the origin * `reset!` brings the turtle back to the origin AND sets the heading to 0 * `clear!` does a `reset!` and sets `bg!` and `pc!` to black and white, respectively.
Author
Owner

@matt points out that home! described is just goto! (0, 0). So let's get rid of reset! and home! should operate as described in the issue title.

@matt points out that `home!` described is just `goto! (0, 0)`. So let's get rid of `reset!` and `home!` should operate as described in the issue title.
scott added this to the Turtle Protocol & Adapters project 2024-07-21 17:40:17 +00:00
Author
Owner

Done in 121446c5c4

Done in https://alea.ludus.dev/twc/ludus/commit/121446c5c4246bb9a100bf56c9e36025496b738b
scott closed this issue 2024-07-21 23:24:06 +00:00
Author
Owner

Note: current protocol does not include clear!; there are a few design decisions involved in that that we'll have to explore once we get actors and multiple turtles & worlds up and running.

Note: current protocol does not include `clear!`; there are a few design decisions involved in that that we'll have to explore once we get actors and multiple turtles & worlds up and running.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/ludus#85
No description provided.