class WordSearch::ThreeDimensional::Generator
Public Instance Methods
directions()
click to toggle source
# File lib/word_search/three_dimensional/generator.rb, line 6 def directions Direction.values.shuffle.map do |direction| Point.new(direction.first, direction.second, direction.third) end end
Private Instance Methods
random_point()
click to toggle source
# File lib/word_search/three_dimensional/generator.rb, line 14 def random_point Point.new(random(plane.x), random(plane.y), random(plane.z)) end