Pen Walking Beads game

Mathematical logic