I took a white board and started bouncing ideas around in my head. I came to the conclusion that I would search for an interesting topic and figure out a way to portray it using code. I researched a couple theories and ended up selecting String Theory. I read into the details of the theories framework and decided to use imagery to create a way to visually understand the concepts of String Theory.

Three images are initially created to demonstrate to the user what the strings may look like on the 1-dimensional plane. The user is then asked to choose one of the three objects. Once selected the object will be altered to portray the chosen image after the 'strings' twist, turn, and vibrate.

Used Python with Turtle to create the images and assigned each image to individual functions. I created a variable that allows the user to choose which image they would like to see. The function will be called depending on the word chosen.

The second functions had to be altered from the first to create the desired final product which caused a series of trial and error to create the base of the shapes in order to be able to add the alteration code.

I'm proud of the overall result and the organization. With python turtle it is easy to make mistakes due to the abundance of code lines and even easier to create disorganization in the sections of code. Similar to any other code, there were failures and small mistakes that were necessary to troubleshoot, but the perseverance I displayed helped me complete the final product

I learned how to take a real-world theory and visually demonstrate it for others in a simplistic way. I also learned how to plan out my work before diving into the code aspect of the project. I implemented many more functions to ensure the swiftness of my code and learned that reading your code is much more important than writing it. To write efficiently, one must understand what they write before they actually write it.

The next step for the String Theory Representation is the solution of String Theory itself. Once proven, a more detailed look may be generated to explain the outcome of the theory's solution.

Built With

  • python-turtle
Share this project:

Updates