Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Subtract one from count to ignore first-page search or random

  • Loading branch information...
commit f10d647e1ff653a11433a24e965b855b2ee49fed 1 parent 860d3f4
@drbrain drbrain authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  examples/wikipedia_links_to_philosophy.rb
View
3  examples/wikipedia_links_to_philosophy.rb
@@ -120,7 +120,8 @@ def print_result
puts @title
end
puts
- puts "After #{@agent.history.length} pages"
+ # subtract initial search or Special:Random
+ puts "After #{@agent.history.length - 1} pages"
end
##
Please sign in to comment.
Something went wrong with that request. Please try again.