The game is hitting the headline in these day and everyone can click this link to play it.The game have a very simple rule like following:
- It will give you a initial layout when you click "重新开始".
Every layout have five color.
- When you click a rectangle adjoining(Up,Down,Left,Right) other $n$ rectangles each other except $n$ equal to 1,you will get $n*n$ scores,and these rectangles will eliminate simultaneously.
Such as you have a this initial layout
You click this rectangle arrow to point out
You'll get $5*5$ scores and eliminate these rectangle
Or another exmaple
$\rightarrow$ $\rightarrow$ $\rightarrow$
- If a inteval between the columns appear,the right columns will move to left to patch it.
So how to use
Mathematica to guide us to get highest score in every initial layout?