Permalink
Browse files

Adjusted a little for Ruby 1.9.1 (Shoes Policeman)

  • Loading branch information...
1 parent 5895158 commit c93ba03e2a23b502aa99050282aa36bcd0532965 @ashbb committed Jul 4, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/turtle_graphics_with_shoes/turtle_graphics.rb
@@ -2,7 +2,7 @@
require 'creature'
require 'turtle'
-Shoes.app :title => 'Turtle Graphics v0.6', :width => 660 do
+Shoes.app :title => 'Turtle Graphics v0.6a', :width => 660 do
def turtle_walk
background forestgreen
t = Turtle.new
@@ -29,8 +29,8 @@ def turtle_walk
unless t.track.empty?
item0, item1, eswn, flag = t.track.shift
case flag
- when :right, :left : t.avatar.rotate item0, item1, eswn[0]
- when :others : t.avatar.send(item0, *item1) if t.avatar.respond_to? item0
+ when :right, :left ; t.avatar.rotate item0, item1, eswn[0]
+ when :others ; t.avatar.send(item0, *item1) if t.avatar.respond_to? item0
else t.avatar.glide [item0, item1], eswn, :line => flag
end
else

0 comments on commit c93ba03

Please sign in to comment.