"Rocky's Boots" is a 1985 educational game developed by Warren Robinett and Leslie Grimm, and published by The Learning Company. This is version 4.0. It runs on any Apple II with 48K.
Description from MobyGames:
Rocky's Boots is a simple educational puzzle game where you can learn about logic circuits.
You control a nondescript square, moving it about several rooms. Each room contains basic electronic parts like AND, OR and NOT gates, flip-flops, delays and clocks. You can pick these up and combine them to build simple or complex circuits.
After a helpful tutorial, the task in the game is to build "kicking" machines: Objects of different colors move through an area and turn sensor outputs on and off. You now have to build a circuit that activates a kicking device which kicks the right objects out. When you do it just right, Rocky the raccoon dances a little jig to a joyful melody for you!
The game also features an editor where you can build you very own kicking puzzle.
Evaluation performed by MicroSIFT (Microcomputer Software and Information for Teachers) for the Courseware Evaluation of 81 pieces of software for educational applications