There is a full-on chess game in this page .. I wonder if it created a mini engine on its own or if it used one of the available open source solutions. Very impressive.
I suspect it's just random. I tried feeding one of its pawns my Queen and it completely ignored it, choosing to move a knight nearby instead that didn't take the Queen.
But it also wasn't just random or anything, it played like a beginner.