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