# File karel/test_robots.rb, line 66 def test_move #@world.place_e_w_wall(2, 3, 1) #@world.clear @world.read_world("../worlds/beepers.txt") @karel = UrRobot.new(4, 3, Robota::SOUTH, 0) @world.show_world_with_robots() @karel.move @karel.turn_left @world.show_world_with_robots() # @world.save_world("../worlds/other.txt") @karel.turn_left @karel.turn_left puts "neighbors: " + @karel.neighbors.to_s @karel.assert_facing(Robota::WEST) # begin # @karel.move # fail # rescue FrontIsBlocked # #nothing # end end