Skip to content

Instantly share code, notes, and snippets.

View claytonflesher's full-sized avatar

Clayton Flesher claytonflesher

  • Oklahoma City, OK
View GitHub Profile
# Fiasco setup
# Six tables
# Six choices
a = [ ]
x = 1
while x <= 16
v = rand(1..6)
a << v
x = x+1
dice = [ ]
i = 0
while i < 16
dice << rand(1..6)
i = i+1
end
puts "Your dice are: #{dice.join(',')}"
puts
dice = [ ]
i = 0
while i < 16
dice << rand(1..6)
i = i+1
end
puts
puts "Your dice are: #{dice.join(',')}"
puts
dice = [ ]
i = 0
while i < 16
dice << rand(1..6)
i = i+1
end
puts
puts "Your dice are: #{dice.join(',')}"
puts
dice = [ ]
i = 0
while i < 16
dice << rand(1..6)
i = i+1
end
puts
puts "Your dice are: #{dice.join(',')}"
puts
gold = ["260", "550", "800", "1,150", "1,550", "2,000", "2,600", "3,350", "4,250", "5,450", "7,000", "9,000", "11,600", "15,000", "19,500", "25,000", "32,000", "41,000", "53,000", "67,000"]
community = ["Thorp", "Hamlet", "Village", "Small town", "Large town", "Small city", "Large city", "Metropolis"]
combsval = ["50 gp", "200 gp", "500 gp", "1,000 gp", "2,000 gp", "4,000 gp", "8,000 gp", "16,000 gp"]
magicitem = [arm&shld, wpn, pot, ring, rod, scrl, stv, wnd, wond]
arm&shld = ["+1 shield", "+1 armor", "+2 shield", "+2 armor", "+3 shield", "+3 armor", "+4 shield", "+4 armor", "+5 shield", "+5 armor", "Specific armor", "Specific shield", "Special ability and roll again"]
dice = [ ]
i = 0
while i < 16
dice << rand(1..6)
i = i+1
end
puts
puts "Your dice are: #{dice.join(',')}"
puts
dice = [ ]
i = 0
while i < 16
dice << rand(1..6)
i = i+1
end
puts
puts "Your dice are: #{dice.join(',')}"
puts
dice = [ ]
i = 0
while i < 16
dice << rand(1..6)
i = i+1
end
puts
puts "Your dice are: #{dice.join(',')}"
puts
dice = [ ]
i = 0
while i < 16
dice << rand(1..6)
i = i+1
end
puts
puts "Your dice are: #{dice.join(',')}"
puts