Skip to content

Instantly share code, notes, and snippets.

@ciaranarcher
Created July 19, 2012 13:55
Show Gist options
  • Save ciaranarcher/3144087 to your computer and use it in GitHub Desktop.
Save ciaranarcher/3144087 to your computer and use it in GitHub Desktop.
class Grid
attr_accessor :values
def initialize(dimension)
@values = []
(1..dimension).each do |i|
@values << (1..dimension).map{ ('A'..'Z').to_a[rand(26)] }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment