Position the DIRPD sensor below the RCX to detect billiar balls, and the edge of a pool table.
Use the collision avoidance program for the simple robot. This
robot will bounce around like a billiard ball, and avoid hitting balls
on the table. It will eventually put itself in a pocket.