instrument-generator/generate_instrument_3.py

12 lines
511 B
Python

#!python3
shapes = "round,rectangular,blobby,like an animal,triangular,long,short,oblong,squat,curved,straight,arched,bell-like,tubular".split(',')
shape = random.choice(shapes)
print(f"Its shape is {shape}.")
if random.random() < 0.6:
style = random.choice("sharp,soft,stationary,hand-held,bent,simple,decorated,sitting,standing".split(','))
print(f"It is a {style} instrument.")
material = random.choice("bone,wood,metal,ceramic,leather,gourds,glass,fiber".split(','))
print(f"It is made of {material}.")