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