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

Bug in Crazy Trees Page #859

Open
cycomachead opened this issue Feb 11, 2022 · 0 comments
Open

Bug in Crazy Trees Page #859

cycomachead opened this issue Feb 11, 2022 · 0 comments

Comments

@cycomachead
Copy link
Member

https://cs10.org/bjc-r/cur/programming/recur/tree/random-tree.html?topic=berkeley_bjc%2Frecur%2Frecursion-trees-fractals.topic&course=cs10_fa20.html&novideo&noreading&noassignment

code (and project linked) has levels FIRST and size SECOND,
but in recursive call they're switched. I'm sure that's not intended, since
the whole exercise is about making sure they can draw a tree with random left and right angles
(obv the solution is to remember those in script vars, and re-use them in the turns below)
NOT "hey, did you also notice a common error that we switched the arguments?"...

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

No branches or pull requests

1 participant