I have 8 coloured dots (represented by Y for Yellow dots) and B for blue dots. Underscore denotes a space. Below is the inital stage:
After rearranging, it should end up like the one shown below:
RULES: A dot can move to an empty space adjacent to it. A dot can jump over only one dot of either colour. Blue dots can only move to the right and Yellow dots to the left.
I have tried to cut out the dots and try to solve it by shifting the dots in all possible ways but i still cannot accomplish the goal without breaking the rules. Please help