Class: Iching

Inherits:
Object
  • Object
show all
Defined in:
lib/iching.rb

Instance Method Summary collapse

Instance Method Details

#displayObject



9
10
11
12
13
14
# 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

#hexObject



5
6
7
# File 'lib/iching.rb', line 5

def hex
  @hex ||= 6.times.map{ Random.new.rand(6..9) }.reverse
end