The First Of Many Projects
Want to insult a friend/enemy, but don’t have the words to do it, then fear not. The Insult Generator will generate a user defined amount of insults to fling at your victim.
Features include:
- Insults that can anywhere between one to three adjectives
- Random noun and adjective selecting
- Insulting error messages.
This insult generator was the result of our first project in our Intro to Logic and Programming class. It was done in Python and allowed me to show what I have learned so far.
One of the toughest parts of the project was trying to select a random noun and adjective without using a list, as it required that no lists were allowed to be used in the program. I was able to get around this roadblock by setting up a loop that would have each value equal to a separate name. This would result in being effective in picking the words and was also effective in being able to expand the program if more nouns and adjectives were to be added in. Granted, it was very redundant and annoying to do, as each value was listed individually. Nonetheless, I got around the problem and got full marks on the entire program.
Since the project, I would like to go back and modify it to make it run better. I would this time use a list and then rework the program to work with it as it would be much easier to select the random adjective and nouns. I would also expand the lists to provide more unique responses created. With using a list, the very annoying and large if statements will not last long.
