Commit 8ae1be6

mo k <mo@mokhan.ca>
2012-08-11 05:44:36
adjust the run task.
1 parent c58d15f
Changed files (3)
bin/app.rb
@@ -1,4 +1,5 @@
 #!/usr/bin/ruby
+$:.unshift(File.dirname(__FILE__) + '/../lib')
 require "console"
 
 begin
lib/terrain.rb
@@ -6,6 +6,7 @@ class Terrain
 
   def move_forward( heading, location)
     new_location = heading.forward(location.clone)
+    puts new_location
     if(is_on_terrain(new_location, :x) && is_on_terrain(new_location, :y))
       location[:x] = new_location[:x]
       location[:y] = new_location[:y]
Rakefile
@@ -6,5 +6,6 @@ task :spec do
 end
 
 task :run do
-  sh "ruby -I bin:lib bin/app.rb"
+  #sh "ruby -I bin:lib bin/app.rb"
+  sh "bin/app.rb"
 end