Solved

# Moving letters

Posted on 2007-10-08
4,299 Views
Hi,
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:
YYYY_BBBB
After rearranging, it should end up like the one shown below:
BBBB_YYYY
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
0
Question by:dandeliondream

LVL 16

Expert Comment

I am guessing there is a better way to do this. But here is my solution:

YYY_YBBBB
YYYBY_BBB
YYYB_YBBB
YY_BYYBBB
Y_YBYYBBB
YBY_YYBBB
YBYY_YBBB
YBYYBY_BB
YBYYB_YBB
YBY_BYYBB
YBYB_YYBB
YBYBY_YBB
YBYBYBY_B
YBYBYB_YB
YBYBYBBY_
YBYBYBB_Y
YBYBYB_BY
YBYB_BYBY
YB_BYBYBY
_BYBYBYBY
B_YBYBYBY
BBY_YBYBY
BBYBY_YBY
BBYBYBY_Y
BBYBYB_YY
BBYB_BYYY
BB_BYBYYY
BBB_YBYYY
BBBBY_YYY
BBBB_YYYY
0

LVL 16

Accepted Solution

However, how can I follow the following rule which is impossible?

"Blue dots can only move to the right and Yellow dots to the left."

Since the yellow dots are originally on the left hand side and blue dots are on the right hand side.
0

LVL 3

Author Comment

yah you are right. it is impossible to follow the rules. Thanks for your help
0

## Featured Post

### Suggested Solutions

Author Cited: Konstantinos Dimopoulos URL Cited From: Article from Indie Games: http://indiegames.com/2012/07/browser_game_pick_the_grid.html The Grid (http://codeelf.com/games/grid/) is the sort of game I haven't played in over 10 years. It is …
Surprisingly, there is a lot to Gym battles, and I thought it would be helpful to share knowledge about all the ins and outs of this feature!
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…