class Iching

Public Instance Methods

display() click to toggle source
# File lib/iching.rb, line 9
def display
  # puts "A suffusion of yellow." && return if Random.new.rand(1..20) <= 1
  hex1 = Hex1.new(hex)
  hex2 = Hex2.new(hex)
  puts hex1.hex_symbol, hex1.hex_name, hex2.hex_symbol, hex2.hex_name
end
hex() click to toggle source
# File lib/iching.rb, line 5
def hex
  @hex ||= 6.times.map{ Random.new.rand(6..9) }.reverse
end