module DefduelWords
Constants
- ENTRIES
Public Instance Methods
Source
# File lib/defduel_game.rb, line 21 def pick(rand: ->(max) { Random.rand(0...max) }) ENTRIES[rand.call(ENTRIES.length)] end
# File lib/defduel_game.rb, line 21 def pick(rand: ->(max) { Random.rand(0...max) }) ENTRIES[rand.call(ENTRIES.length)] end