Sha256: 5b167c490b279852457f17147352db72ce24c6e11e4ea700f9a466dfdce75240
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true module WordSearch module ThreeDimensional class Generator < Generator::Base def directions Direction.values.shuffle.map do |direction| Point.new(direction.first, direction.second, direction.third) end end private def random_point Point.new(random(plane.x), random(plane.y), random(plane.z)) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems