CS130 - Second class: 1/19/2011

  1. news
  2. Administrivia
  3. Where is the class web page?
  4. Questions?
  5. Read Chapter 1 of ruby for Monday.
  6. Getting started with Ruby Lab 0 - first ruby lab
    1. Ruby's world
      1. Streets & avenues
      2. Walls
      3. Coins
    2. Ruby's capabilities
      1. move(); -- move 1 block straight ahead
      2. turnLeft(); -- turn left 90 degrees
      3. takeCoin(); -- pick up a coin from her current corner and put it in her bag
      4. putCoin(); -- put down a coin from her bag at her current corner
    3. Ruby's senses
      1. next to a coin
      2. coin in bag
      3. front is blocked
      4. left is blocked
      5. right is blocked
    4. Tasks
      1. initial situation - the state of Ruby and her world when the program starts
      2. final situation - - the state of Ruby and her world when Ruby executes halt