If we had a whole semester for our AI/AL/generativity module, it could be something like Dan Shiffman's class "the Nature of code" taught at ITP. They also use Processing for all assignments. Beautiful stuff.
my applet is here