Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adjusted a little for Ruby 1.9.1 (Shoes Policeman)

  • Loading branch information...
commit c93ba03e2a23b502aa99050282aa36bcd0532965 1 parent 5895158
@ashbb authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/turtle_graphics_with_shoes/turtle_graphics.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.