Skip to content
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

Add initial Sierpinski triangle example. #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add initial Sierpinski triangle example. #23

wants to merge 1 commit into from

Conversation

daftbat
Copy link

@daftbat daftbat commented Apr 22, 2020

Hi Chris,

I thought some students might like an example that used graphics so they could get a bit more visually creative. I've put together a little Sierpinski triangle example. After I did it though, I thought the students could use some starter code that set up all the graphics (tkinter is not so obvious!), and just gave them a canvas to draw on, so I added an optional "extras" dir, and a starter.py file for my example. Please let me know any questions. I'm happy to change it around. For instance, I wasn't sure if the students know tuples or lists (I decided on lists for the points), or if they know about classes (which I decided against). Don't be afraid of the length; it's mostly comments! If you think it'd be interesting, I'd be happy to generalize the graphics stuff into a class, and do a few example entry boxes, buttons, and sliders with it.

Thanks,
Greg

@chrispiech
Copy link
Contributor

Hi Greg! This is awesome but I think it has too many concepts that students haven't seen (including recursion)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants