diff --git a/README.md b/README.md index 91c9197..f0110f9 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,35 @@ Look at these iterations (n = 1, 2, 3) of a one-rule grammar. Using the built in square2 square3 +![image](https://github.com/kishayan02/lab03-grammars/assets/97934823/75bd4bd4-4b2e-477a-b2b3-242e60df1f72) + + ## 2. Square grammar puzzle -How about this one? Take a screenshot of your rules.\ +How about this one? Take a screenshot of your rules. square1 square2 square3 +![image](https://github.com/kishayan02/lab03-grammars/assets/97934823/e369ccea-db52-414f-b28f-94727f588700) + + ## 3. Custom plant Choose a plant in the world. Working off a reference, design a grammar that mimics the structure of that plant. Unlike our simple puzzles, please use multiple rules for greater complexity. Think carefully about the structure of your grammar! EXPLAIN the structure of your plant in the README. What are the components? What do each of the rules do? Be sure to also include images of a few iterations of your output plant. -## Submission -- Create a pull request against this repository -- In your readme, list your solutions and format your README nicely -- Profit +The plant we chose was the flower called baby's breath (we did not get to the actual flower part, unfortunately) + +![image](https://github.com/kishayan02/lab03-grammars/assets/97934823/0c21c3ef-6b0c-4a1a-80d2-fd872d613e67) + + +Here is our final product (with 4, 5, and 6 generations) + +![image](https://github.com/kishayan02/lab03-grammars/assets/97934823/4323e4f3-0e10-4812-8dcc-1065bb628a46) +![image](https://github.com/kishayan02/lab03-grammars/assets/97934823/8a6c2b9d-e485-40e3-84dd-808c457c200b) +![image](https://github.com/kishayan02/lab03-grammars/assets/97934823/ba63f155-98d7-4550-83fb-def4ed09254a) + +Here are our rules: + +![image](https://github.com/kishayan02/lab03-grammars/assets/97934823/be8116dd-820e-468a-80b6-d9b8d77942e7) + +Baby's breath has multiple branches that get shorter over time with flowers on the ends. Thus, we have two separate rules, one that separates the plant into 3 branches with probability 0.6 and the other that separates the plant into 2 branches with probability 0.4. Additionally, the branches become 0.7x shorter with every iteration. There is also a rotation angle of 25 to make sure the plant branches out sufficiently. +