by ethbr0 · 3y ago · 0 comments
If they can create/combine algorithms to solve a problem... that's most of programming.
I'd start with the "robot" problem: have them write a set of steps to complete a simple task, and then have them (or better, someone else) go through the steps precisely (no cheating and assuming they meant something they didn't write!). Then iterate and add/remove steps until the task is actually doable. (Disclaimer: idea cribbed from someone else)
That gets them to grok the "everything needs to be in a program, and a program is only everything that's in it" idea.
The traveling salesman problem (recast in whatever form would be most interesting to the kids) and graph theory problems are also especially visual and explorable.
To date myself, for me it was the computer game The Incredible Machine, which was a Rube Goldberg physics puzzle game... in 1993 on DOS. ;)
Critically, the failure-iteration loop was tight, which really impressed "if at first you don't succeed, try try again" on my younger self.