version 12 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next

  • Chapter 2 - Patrolling Activity
    Section 2.1 - Initialize Room Led Patrollers
    When Play begins (this is the initialize room-led patrollers rule):
        repeat with Bod running through RoomLed Patrollers:
            now the PathLength of the Bod is the number of rows in the RoomTable of the Bod;
            now the PathStage of the Bod is 2.