diff --git a/Connect4/connectCore2.py b/Connect4/connectCore2.py new file mode 100644 index 0000000..f9d9089 --- /dev/null +++ b/Connect4/connectCore2.py @@ -0,0 +1,18 @@ +#!/bin/python +# connectCore.py, core of connect4 +# Written by Caleb Fontenot + +# Brainstorming: We could use multidimentional lists to store x, y, and color information +# Connect 4 grids are 7 x 6 (7 collums, 6 rows) +# Options for list formats: +# List per slot, seems a bit bulky to manipulate + +# Brainstorming: We could use multidimentional dicts for storing the data +# Seems easier in theory to manipulate +collum = 7 +row = 6 +for range(row) in row: + connect4Slot = {'x': 0, 'y': 0, 'color': "null"} + +connect4Row = {connect4Slot} +print(connect4Slot) \ No newline at end of file diff --git a/madlibs/madlibs.py b/madlibs/madlibs.py index 5966ce1..add8b25 100755 --- a/madlibs/madlibs.py +++ b/madlibs/madlibs.py @@ -31,7 +31,6 @@ if platform.system() == 'Linux': # Introduce yourself print (colored("<>", 'red'), '\n' "Project started on July 13, 2019") print("I pull txt files in the directory you place me in for stories!" '\n' '\n' "Run me with the --setup flag for instructions on setting a story up!" '\n') -print("Final Build*", '\n') # Notify if verbose if debug == 1: print("Debug mode is enabled! Being verbose!", '\n') @@ -115,7 +114,6 @@ with open(saveFile+'.txt', 'w+') as file_object: file_object.write(filteredTitle[0]+'\n'+'\n') file_object.write(generatedStory) file_object.write('\n'+"Generated by Caleb Fontenot\'s madlibs.py") - file_object.close() # say the tts print('\n'+"Processing Text-To-Speech, please wait..."+'\n') diff --git a/madlibs/saved stories/generatedStory-09-04-2021-10:34:53.mp3 b/madlibs/saved stories/generatedStory-09-04-2021-10:34:53.mp3 new file mode 100644 index 0000000..ea26d9e Binary files /dev/null and b/madlibs/saved stories/generatedStory-09-04-2021-10:34:53.mp3 differ diff --git a/madlibs/saved stories/generatedStory-09-04-2021-10:34:53.txt b/madlibs/saved stories/generatedStory-09-04-2021-10:34:53.txt new file mode 100644 index 0000000..2fbbc18 --- /dev/null +++ b/madlibs/saved stories/generatedStory-09-04-2021-10:34:53.txt @@ -0,0 +1,4 @@ +caleb wanted me to do a thing now it will commence + +Once upon a time in the land of asdf, there was a lovely little chap called asd, but everyone just f to call him asdf. You see, he was the hero of the nearby city of asdf, and that made the mayor of the city he lived in, asd, very unhappy. So, in an act of fsfda, he created his own army to take over the world. Now asd did not like this, so he asdf up to the main robot, which the mayor was in, and told him "asfd". The mayor, hearing those words, instantly surrendered and fasd. He was then charged for 3 major acts of asd. +Generated by Caleb Fontenot's madlibs.py \ No newline at end of file