NaPoWriMo x NaPoGenMo 2024 Day 30 : Sense Based
Kofi / Illestpreacha
2 min read
Table of contents
SenseCarousel
For the 30th day of NaPoWriMo/NaPoGenMo 2024, SenseCarousel contains rules and prompts coded in Python. This is done by having four shuffled arrays of the senses and comparing them to one another. If the same sense is in the same position in the array, it gets called to the final output of the poem.
Poetic Rule
The following rule set for this poem:
12 Lines of Poetry
2 Stanza's
Each line must make reference to the sense shown
['Taste']
['Sight']
['Touch', 'Taste']
['Hearing']
['Touch']
['Taste', 'Smell', 'Hearing']
['Taste', 'Touch']
['Smell', 'Hearing']
['Sight', 'Taste', 'Smell']
['Taste', 'Smell']
['Hearing']
['Hearing']
Poem
The sweetness was obvious from a mile
I looked to see the source
It felt like an obstacle course but that sweetness made a smile
As it was crunchy
But yet a bit fluffy
Hearing the crunch as the aroma filled nibbles
With hints of Umami & with a slight ripple
Not an overpowerful scent but that crunchiness gets louder
It had a nice golden tint, that umami still maintains a hint, and my nose
Is still on the combination of the umami and the spice that clears the hose
Healing nothing but joy from the voice
Hearing nothing but joy form the noise
Code
import random as rd
def shuffle_sense():
Senses = ['Smell', 'Taste', 'Touch', 'Sight', 'Hearing']
rd.shuffle(Senses)
return Senses
def sense_quad():
sense1 = shuffle_sense()
sense2 = shuffle_sense()
sense3 = shuffle_sense()
sense4 = shuffle_sense()
return sense1,sense2,sense3,sense4
def charcheck(a,b):
#empty array
letters = []
#this will run a loop to the length of the array and if the elements match, it will be append to the letters array
i = 0
while i < len(a):
if (a[i] == b[i]):
letters.append(a[i])
i += 1
return letters
def output():
print(charcheck(sense_quad()[0],sense_quad()[1]))
print(charcheck(sense_quad()[0],sense_quad()[2]))
print(charcheck(sense_quad()[0],sense_quad()[3]))
print(charcheck(sense_quad()[1],sense_quad()[2]))
print(charcheck(sense_quad()[1],sense_quad()[3]))
print(charcheck(sense_quad()[2],sense_quad()[3]))
def carousel():
shuffle_sense()
sense_quad()
output()
0
Subscribe to my newsletter
Read articles from Kofi / Illestpreacha directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by