RoboMind Introductory Programs #2 - May 17, 2012, Cardinal Forest Elementary School

RoboMind website
RoboMind Example scripts
RoboMind Basic instructions: move, paint, grab, see
RoboMind Programming Structures: comment, loops, if-structures, procedures, end
Back to RoboMind Projects

For more programming challenges, see Robo Exercise Set 1

  • RoboMind example scripts/programs

    1. Open RoboMind. Open the map "openAreaOneSquare.map". Zoom out.

    2. This Lab DOES NOT USE Remote Control! Use Edit and Insert

    3. Paint a white square that connects the white dots. Start with Insert and Paint white

    4. Move forward. Use Insert and forward(1) and right
      paintWhite
      forward(1)
      forward(1)
      forward(1)
      forward(1)
      forward(1)
      forward(1)
      right
      forward(1)
      forward(1)
      forward(1)
      forward(1)
      forward(1)
      forward(1)
      right
      
      . . .
      
    5. Run the program.

    6. Now try the program with forward(6)
      paintWhite
      forward(6)
      right
      forward(6)
      right
      forward(6)
      right
      forward(6)
      right
      stopPainting
      
    7. Now try with a repeat(4):
      paintWhite
      repeat(4) {
      	forward(6)
      	right
      }
      stopPainting
      repeat(4) {
          forward(4)    
          right
      }
      stopPainting
      
      
    8. Draw a black square inside the white square

    9. Draw another black square around the white square

    10. Do a similar program in Kojo. The large blue square has side=100.

      Here's the beginning of a Kojo program:

      clear
      setPenColor(blue)
      repeat(4){
          forward(100)
          right
      }
      penUp()
      forward(10)
      right
      forward(10)
      left
      penDown
      setPenColor(red)
      repeat(4){
          . . .
       }