I think you might be able to detect that the cat caught the dot by identifying an unplanned motion of the dot itself.
Re:Cats, lasers and Raspberry Pi
by asdfman123 on Friday February 07, 2020 @01:53PM
(#22269339)
That's an excellent point and it sounds very easy to implement.
It played with it for a little while quickly lost interest, despite how much I tweaked the randomization algorithm. (I tried stuff like truly random points, random jumps, slow movement, etc. etc.)
I figured out that she played much longer when I did it by hand. I realized that when I did it manually, I'd wait for her to catch the dot and then move immediately, so I thought about making something that tracked where the cat was, too, but never got around to it.