When my daughter was in grade 5, I volunteered to teach programming for an afternoon while the teacher could do one-on-ones.<p>I took Robocode[1], made a basic Robot class that the kids could easily extend, and then taught them just enough logic and syntax so they could have their robots battle their classmates'.<p>It was a huge success. We had to close the door to the classroom because the kids were so loud, cheering their robots on.<p>Whenever a kid was called by the teacher to do their one-on-one, they protested "one more minute, I need to improve my robot!"<p>In September, my daughter starts university in software engineering; mission accomplished! ;)<p>[1] <a href="https://robocode.sourceforge.io/" rel="nofollow">https://robocode.sourceforge.io/</a>