October 13, 2011

[squared]: A Dice Poem



[squared] is not an attempt to reincarnate a chick-v-egg debate. Rather, it is an analog[ue?] vision of a computer generated poem.

More specifically, the 6 faces of each of 3 die display 1 of 18 pieces of prose, and are a tangible means of randomly generating one of my previously untitled generative projects. Should we encounter an EMP, blackout, or summertime power outage, these poetry dice will accommodate unlimited rolling while your CPU remains DOA, thus providing, to the user, endless enjoyment [or what we call in the business "poetic appeasement"].

[We don't really call it that.][I made that up.][Sorry.].

Poetry dice require no coding experience, so this is something that can be done by anyone [and I hope you do!]. Nevertheless, for those interested, here is the .python code for [squared]:

# [squared]
# Sonny Rae Tempest


from random import choice
from time import sleep


dice1=['The middle-aged woman closed the curtains. She then,','The old woman picked up the glass. She then,','The young woman dashed down the stairs. She then,','The old man closed the book. He then,','The middle-aged man put down the shovel. He then,','The young man washed his hands. He then']
dice2=['laughing,','winking,','blushing,','without a word,','sobbing,','shaking,']
dice3=['took the diamond from the middle-aged woman.',"petted the young woman's sandy hair.",'gave the worn pages to the old woman.','tossed the young man the glove.','handed the middle-aged man a folded check.','embraced the old man.']


while True:
print ('\n'+choice(dice1)+' '+choice(dice2)+' '+choice(dice3))
sleep(4)

-SRT

1 comment:

  1. You are incredible! I love playing/making with you! These are so fun! Everyone out there should try making these! Even the kiddos love them! :)

    ReplyDelete