Skip to content

Lab03: Kisha Yan and Hansen Yi #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,35 @@ Look at these iterations (n = 1, 2, 3) of a one-rule grammar. Using the built in
<img width="200" alt="square2" src="https://user-images.githubusercontent.com/1758825/193949853-cf2306b3-3537-4c24-91b5-0a3083bc87c0.png">
<img width="200" alt="square3" src="https://user-images.githubusercontent.com/1758825/193949859-5e432b4b-f18d-48b5-a9e9-8d7dba255955.png">

![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.
<img width="200" alt="square1" src="https://user-images.githubusercontent.com/1758825/193949895-87cdfb43-da7c-4867-ab1b-107e1ba9d2a7.png">
<img width="200" alt="square2" src="https://user-images.githubusercontent.com/1758825/193949904-a9cdfe0f-319e-4ca8-9935-dd338217a7cf.png">
<img width="200" alt="square3" src="https://user-images.githubusercontent.com/1758825/193949910-928e5993-ce26-4681-80f8-ffeb54be4dcf.png">

![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.