Make the classic game Snake using Functional Reactive Programming in Typescript via Bacon.js.
This is a two part exercise. There are checkpoint branches for each part:
- Start:
part1
- Midpoint:
part2
- Final solution:
part3
To start:
git checkout part1
- Follow the setup instructions on the readme page for that branch
- Look at the goals section on the webpage after running. You can also checkout
part2
to see the behaviour you need to implement. - Repeat for part2
I usually introduce FRP before getting people to start, this is presentation I use.