Skip to content

Instantly share code, notes, and snippets.

@ambethia

ambethia/mount.rb

Created Mar 9, 2009
Embed
What would you like to do?
Trying to make myself feel better about how many times I've killed Anzu now.
require "rubygems"
require "gruff"
graph = Gruff::Line.new
graph.title = "Drop the damn mount already..."
graph.data("%", (1..800).map { |y| (1 - (0.99 ** y)) * 100 })
graph.labels = {0 => "1", 50 => "50", 100 => "100", 250 => "250", 500 => "500", 750 => "750+"}
graph.hide_legend = true
graph.x_axis_label = "Number of attempts"
graph.y_axis_label = "% chance it should have dropped by now"
graph.write("mount.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment