Not particularly the type of AI I would teach people (neural networks, and some symbolic AI) but this looks good for working with kids to learn some programming. My grandkids are visiting and I might see if they are patient enough to try this.
I was thinking about how to do this using QLearning to solve the optimal solution given any level, though I am not sure how long it would take to converge since their are so many different actions.