uclaacm/recursion-lab

๐Ÿš€ Feature: Animation for Fibonacci Rabbit page's Understand the Problem

EDWIN1669086 opened this issue ยท 0 comments

Note: make sure nothing is currently in "Understand the Problem" for the Rabbit page. There used to be a KhanCard but it should be moved to "Identifying the Base Case" (ie. run git pull to get all the new changes)

Also please work on this task only after re-working the previous tasks!

Proposed Solution

We could use the Fibonacci sequence as our example. We could have 1 1 2 3 5 8 (shown using rabbits) as an animation so they can see that this problem is the Fibonacci sequence. Showing the next sequence could be automatic (as in timed) or manual (with a next button).
So like if we were at the sequence 1 1 2 3 (in terms of rabbits)

Them clicking next or waiting 1 second would trigger the next number (of rabbits) 1 1 2 3 5

We could also have a number above the rabbits to indicate how many there are at that current step.

Screenshot 2023-05-23 at 5 50 10 PM @lediemhang87