:
0 1 2
7 8 3
6 5 4
N (x) x.
:
for each tile x in (A,B,C,...,H)
score += distance from N(x) to the correct square for tile x
if N(x)==8
score += 3*1
else if N(next(x))!= (N(x)+1)%8
score += 3*2
next (x) x , .. next (A) = B, next (B) = C,.., next (G) = H, next (H) = A
, :
- (N (x) +1)% 8, ..
- " "
- A. C A, 2. C, D A, . D, E, F, G, , H, 0, 4. 1, B , 5. 3, 15. 1, B , 1, A , 17.