Since no firstrank constant has been stored for this game, one will be calculated by analyzing the moves in the game. This will work only if the game lasted long enough to put enough pieces into play.
mv is b2-b3, p is #p, o is b2
space b2 is P
0 P b2-b3 27 61 59 61 59 61 59 29
11011 111101 111011 111101 111011 111101 111011 11101
mv is b7-b6, p is #p, o is b7
space b7 is p
1 p b7-b6 27 61 59 61 59 61 59 29
11011 111101 111011 111101 111011 111101 111011 11101
mv is e1-f3, p is #p, o is e1
space e1 is e1
2 e1 e1-f3 27 61 59 61 59 61 59 29
11011 111101 111011 111101 111011 111101 111011 11101
5 one bits in var e1
11011 111101 111011 111101 1 111101 111011 11101
q end e1-f3 27 61 59 61 1 61 59 29
bb end e1-f3 27 61 59 61 1 61 59 29
bw end e1-f3 27 61 59 61 1 61 59 29
firstr is a1, and lastr is h1
r e1-f3 27 61 59 61 1 61 59 29
first 27 61 59 61 1 61 59 29
mv is c8-b7, p is #p, o is c8
space c8 is c1
3 c1 c8-b7 27 61 59 61 1 61 59 29
11011 111101 111011 111101 1 111101 111011 11101
5 one bits in var c1
11011 111101 110010 111101 1 111101 111011 11101
q end c8-b7 27 61 50 61 1 61 59 29
bb end c8-b7 27 61 50 61 1 61 59 29
bw end c8-b7 27 61 50 61 1 61 59 29
firstr is a1, and lastr is h1
r c8-b7 27 61 50 61 1 61 59 29
first 27 61 50 61 1 61 59 29
mv is c1-b2, p is #p, o is c1
space c1 is c1
4 c1 c1-b2 27 61 50 61 1 61 59 29
11011 111101 110010 111101 1 111101 111011 11101
3 one bits in var c1
11011 111101 110010 111101 1 111101 111011 11101
q end c1-b2 27 61 50 61 1 61 59 29
bb end c1-b2 27 61 50 61 1 61 59 29
bw end c1-b2 27 61 50 61 1 61 59 29
firstr is a1, and lastr is h1
r c1-b2 27 61 50 61 1 61 59 29
first 27 61 50 61 1 61 59 29
mv is e8-d6, p is #p, o is e8
space e8 is e1
5 e1 e8-d6 27 61 50 61 1 61 59 29
11011 111101 110010 111101 1 111101 111011 11101
1 one bits in var e1
11011 111101 110010 111101 1 111101 111011 11101
q end e8-d6 27 61 50 61 1 61 59 29
bb end e8-d6 27 61 50 61 1 61 59 29
bw end e8-d6 27 61 50 61 1 61 59 29
firstr is a1, and lastr is h1
r e8-d6 27 61 50 61 1 61 59 29
first 27 61 50 61 1 61 59 29
mv is d2-d3, p is #p, o is d2
space d2 is P
6 P d2-d3 27 61 50 61 1 61 59 29
11011 111101 110010 111101 1 111101 111011 11101
mv is d8-c6, p is #p, o is d8
space d8 is d1
7 d1 d8-c6 27 61 50 61 1 61 59 29
11011 111101 110010 111101 1 111101 111011 11101
5 one bits in var d1
11011 111101 110010 1 1 111101 111011 11101
q end d8-c6 27 61 50 1 1 61 59 29
bb end d8-c6 27 61 50 1 1 61 59 29
bw end d8-c6 27 61 50 1 1 61 59 29
firstr is a1, and lastr is h1
r d8-c6 27 61 50 1 1 61 59 29
first 27 61 50 1 1 61 59 29
11010 111100 110010 1 1 111100 111010 11100
q end d8-c6 26 60 50 1 1 60 58 28
bb end d8-c6 26 60 50 1 1 60 58 28
bw end d8-c6 26 60 50 1 1 60 58 28
firstr is a1, and lastr is h1
r d8-c6 26 60 50 1 1 60 58 28
first 26 60 50 1 1 60 58 28
mv is e2-e4, p is #p, o is e2
space e2 is P
8 P e2-e4 26 60 50 1 1 60 58 28
11010 111100 110010 1 1 111100 111010 11100
mv is f7-f6, p is #p, o is f7
space f7 is p
9 p f7-f6 26 60 50 1 1 60 58 28
11010 111100 110010 1 1 111100 111010 11100
mv is d1-e3, p is #p, o is d1
space d1 is d1
10 d1 d1-e3 26 60 50 1 1 60 58 28
11010 111100 110010 1 1 111100 111010 11100
1 one bits in var d1
11010 111100 110010 1 1 111100 111010 11100
q end d1-e3 26 60 50 1 1 60 58 28
bb end d1-e3 26 60 50 1 1 60 58 28
bw end d1-e3 26 60 50 1 1 60 58 28
firstr is a1, and lastr is h1
r d1-e3 26 60 50 1 1 60 58 28
first 26 60 50 1 1 60 58 28
mv is e7-e5, p is #p, o is e7
space e7 is p
11 p e7-e5 26 60 50 1 1 60 58 28
11010 111100 110010 1 1 111100 111010 11100
mv is f1-e2, p is #p, o is f1
space f1 is f1
12 f1 f1-e2 26 60 50 1 1 60 58 28
11010 111100 110010 1 1 111100 111010 11100
4 one bits in var f1
11010 111100 110010 1 1 110100 111010 11100
q end f1-e2 26 60 50 1 1 52 58 28
bb end f1-e2 26 60 50 1 1 52 58 28
bw end f1-e2 26 60 50 1 1 52 58 28
firstr is a1, and lastr is h1
r f1-e2 26 60 50 1 1 52 58 28
first 26 60 50 1 1 52 58 28
mv is f8-e7, p is #p, o is f8
space f8 is f1
13 f1 f8-e7 26 60 50 1 1 52 58 28
11010 111100 110010 1 1 110100 111010 11100
3 one bits in var f1
11010 111100 110010 1 1 110100 111010 11100
q end f8-e7 26 60 50 1 1 52 58 28
bb end f8-e7 26 60 50 1 1 52 58 28
bw end f8-e7 26 60 50 1 1 52 58 28
firstr is a1, and lastr is h1
r f8-e7 26 60 50 1 1 52 58 28
first 26 60 50 1 1 52 58 28
mv is h1-f1, p is #p, o is h1
space h1 is h1
14 h1 h1-f1 26 60 50 1 1 52 58 28
11010 111100 110010 1 1 110100 111010 11100
3 one bits in var h1
rook hopping king to castle
11010 111100 110010 1 1 110100 111010 11100
q end h1-f1 26 60 50 1 1 52 58 28
bb end h1-f1 26 60 50 1 1 52 58 28
bw end h1-f1 26 60 50 1 1 52 58 28
firstr is a1, and lastr is h1
r h1-f1 26 60 50 1 1 52 58 28
first 26 60 50 1 1 52 58 28
mv is h8-f8, p is #p, o is h8
space h8 is h1
15 h1 h8-f8 26 60 50 1 1 52 58 28
11010 111100 110010 1 1 110100 111010 11100
3 one bits in var h1
rook hopping king to castle
11010 111100 110010 1 1 110100 111010 11100
q end h8-f8 26 60 50 1 1 52 58 28
bb end h8-f8 26 60 50 1 1 52 58 28
bw end h8-f8 26 60 50 1 1 52 58 28
firstr is a1, and lastr is h1
r h8-f8 26 60 50 1 1 52 58 28
first 26 60 50 1 1 52 58 28
mv is e3-d5, p is #p, o is e3
space e3 is d1
16 d1 e3-d5 26 60 50 1 1 52 58 28
11010 111100 110010 1 1 110100 111010 11100
1 one bits in var d1
11010 111100 110010 1 1 110100 111010 11100
q end e3-d5 26 60 50 1 1 52 58 28
bb end e3-d5 26 60 50 1 1 52 58 28
bw end e3-d5 26 60 50 1 1 52 58 28
firstr is a1, and lastr is h1
r e3-d5 26 60 50 1 1 52 58 28
first 26 60 50 1 1 52 58 28
mv is b8-d8, p is #p, o is b8
space b8 is b1
17 b1 b8-d8 26 60 50 1 1 52 58 28
11010 111100 110010 1 1 110100 111010 11100
4 one bits in var b1
rook ride
Rook or Queen move
11010 11000 110010 1 1 110100 111010 11100
q end b8-d8 26 24 50 1 1 52 58 28
bb end b8-d8 26 24 50 1 1 52 58 28
bw end b8-d8 26 24 50 1 1 52 58 28
firstr is a1, and lastr is h1
r b8-d8 26 24 50 1 1 52 58 28
first 26 24 50 1 1 52 58 28
mv is b1-c1, p is #p, o is b1
space b1 is b1
18 b1 b1-c1 26 24 50 1 1 52 58 28
11010 11000 110010 1 1 110100 111010 11100
2 one bits in var b1
11010 11000 110010 1 1 110100 111010 11100
q end b1-c1 26 24 50 1 1 52 58 28
bb end b1-c1 26 24 50 1 1 52 58 28
bw end b1-c1 26 24 50 1 1 52 58 28
firstr is a1, and lastr is h1
r b1-c1 26 24 50 1 1 52 58 28
first 26 24 50 1 1 52 58 28
mv is d6-f7, p is #p, o is d6
space d6 is e1
19 e1 d6-f7 26 24 50 1 1 52 58 28
11010 11000 110010 1 1 110100 111010 11100
1 one bits in var e1
11010 11000 110010 1 1 110100 111010 11100
q end d6-f7 26 24 50 1 1 52 58 28
bb end d6-f7 26 24 50 1 1 52 58 28
bw end d6-f7 26 24 50 1 1 52 58 28
firstr is a1, and lastr is h1
r d6-f7 26 24 50 1 1 52 58 28
first 26 24 50 1 1 52 58 28
mv is d5-e7, p is #p, o is d5
space d5 is d1
20 d1 d5-e7 26 24 50 1 1 52 58 28
11010 11000 110010 1 1 110100 111010 11100
1 one bits in var d1
11010 11000 110010 1 1 110100 111010 11100
q end d5-e7 26 24 50 1 1 52 58 28
bb end d5-e7 26 24 50 1 1 52 58 28
bw end d5-e7 26 24 50 1 1 52 58 28
firstr is a1, and lastr is h1
r d5-e7 26 24 50 1 1 52 58 28
first 26 24 50 1 1 52 58 28
mv is c6-e7, p is #p, o is c6
space c6 is d1
21 d1 c6-e7 26 24 50 1 1 52 58 28
11010 11000 110010 1 1 110100 111010 11100
1 one bits in var d1
11010 11000 110010 1 1 110100 111010 11100
q end c6-e7 26 24 50 1 1 52 58 28
bb end c6-e7 26 24 50 1 1 52 58 28
bw end c6-e7 26 24 50 1 1 52 58 28
firstr is a1, and lastr is h1
r c6-e7 26 24 50 1 1 52 58 28
first 26 24 50 1 1 52 58 28
mv is c2-c4, p is #p, o is c2
space c2 is P
22 P c2-c4 26 24 50 1 1 52 58 28
11010 11000 110010 1 1 110100 111010 11100
mv is e7-g6, p is #p, o is e7
space e7 is d1
23 d1 e7-g6 26 24 50 1 1 52 58 28
11010 11000 110010 1 1 110100 111010 11100
1 one bits in var d1
11010 11000 110010 1 1 110100 111010 11100
q end e7-g6 26 24 50 1 1 52 58 28
bb end e7-g6 26 24 50 1 1 52 58 28
bw end e7-g6 26 24 50 1 1 52 58 28
firstr is a1, and lastr is h1
r e7-g6 26 24 50 1 1 52 58 28
first 26 24 50 1 1 52 58 28
mv is c1-d2, p is #p, o is c1
space c1 is b1
24 b1 c1-d2 26 24 50 1 1 52 58 28
11010 11000 110010 1 1 110100 111010 11100
2 one bits in var b1
11010 10000 110010 1 1 110100 111010 11100
queen before c1-d2 26 16 50 1 1 52 58 28
queen after c1-d2 10 16 34 1 1 36 42 12
q end c1-d2 10 16 34 1 1 36 42 12
bb end c1-d2 10 16 34 1 1 36 42 12
bw end c1-d2 10 16 34 1 1 36 42 12
firstr is a1, and lastr is h1
One Rook found
b1 16
c1 34
r c1-d2 8 16 34 1 1 36 42 12
first 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
q end c1-d2 8 16 34 1 1 36 42 12
bb end c1-d2 8 16 34 1 1 36 42 12
bw end c1-d2 8 16 34 1 1 36 42 12
firstr is a1, and lastr is h1
One Rook found
b1 16
c1 34
r c1-d2 8 16 34 1 1 36 42 12
first 8 16 34 1 1 36 42 12
mv is g6-f4, p is #p, o is g6
space g6 is d1
25 d1 g6-f4 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
1 one bits in var d1
1000 10000 100010 1 1 100100 101010 1100
q end g6-f4 8 16 34 1 1 36 42 12
bb end g6-f4 8 16 34 1 1 36 42 12
bw end g6-f4 8 16 34 1 1 36 42 12
firstr is a1, and lastr is h1
One Rook found
b1 16
c1 34
r g6-f4 8 16 34 1 1 36 42 12
first 8 16 34 1 1 36 42 12
mv is a1-d1, p is #p, o is a1
space a1 is a1
26 a1 a1-d1 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
1 one bits in var a1
1000 10000 100010 1 1 100100 101010 1100
q end a1-d1 8 16 34 1 1 36 42 12
bb end a1-d1 8 16 34 1 1 36 42 12
bw end a1-d1 8 16 34 1 1 36 42 12
firstr is a1, and lastr is h1
One Rook found
b1 16
c1 34
r a1-d1 8 16 34 1 1 36 42 12
first 8 16 34 1 1 36 42 12
mv is c7-c6, p is #p, o is c7
space c7 is p
27 p c7-c6 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
mv is d3-d4, p is #p, o is d3
space d3 is P
28 P d3-d4 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
mv is f4-e2, p is #p, o is f4
space f4 is d1
29 d1 f4-e2 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
1 one bits in var d1
1000 10000 100010 1 1 100100 101010 1100
q end f4-e2 8 16 34 1 1 36 42 12
bb end f4-e2 8 16 34 1 1 36 42 12
bw end f4-e2 8 16 34 1 1 36 42 12
firstr is a1, and lastr is h1
One Rook found
b1 16
c1 34
r f4-e2 8 16 34 1 1 36 42 12
first 8 16 34 1 1 36 42 12
mv is d2-e2, p is #p, o is d2
space d2 is b1
30 b1 d2-e2 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
1 one bits in var b1
1000 10000 100010 1 1 100100 101010 1100
q end d2-e2 8 16 34 1 1 36 42 12
bb end d2-e2 8 16 34 1 1 36 42 12
bw end d2-e2 8 16 34 1 1 36 42 12
firstr is a1, and lastr is h1
One Rook found
b1 16
c1 34
r d2-e2 8 16 34 1 1 36 42 12
first 8 16 34 1 1 36 42 12
mv is d7-d5, p is #p, o is d7
space d7 is p
31 p d7-d5 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
mv is e4-d5, p is #p, o is e4
space e4 is P
32 P e4-d5 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
mv is c6-d5, p is #p, o is c6
space c6 is p
33 p c6-d5 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
mv is d4-e5, p is #p, o is d4
space d4 is P
34 P d4-e5 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
mv is d8-c7, p is #p, o is d8
space d8 is b1
35 b1 d8-c7 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
1 one bits in var b1
1000 10000 100010 1 1 100100 101010 1100
q end d8-c7 8 16 34 1 1 36 42 12
bb end d8-c7 8 16 34 1 1 36 42 12
bw end d8-c7 8 16 34 1 1 36 42 12
firstr is a1, and lastr is h1
One Rook found
b1 16
c1 34
r d8-c7 8 16 34 1 1 36 42 12
first 8 16 34 1 1 36 42 12
mv is c4-d5, p is #p, o is c4
space c4 is P
36 P c4-d5 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
mv is f8-e8, p is #p, o is f8
space f8 is h1
37 h1 f8-e8 8 16 34 1 1 36 42 12
1000 10000 100010 1 1 100100 101010 1100
2 one bits in var h1
1000 10000 100010 1 1 100100 101010 1000
q end f8-e8 8 16 34 1 1 36 42 8
bb end f8-e8 8 16 34 1 1 36 42 8
bw end f8-e8 8 16 34 1 1 4 42 8
firstr is a1, and lastr is h1
Two rooks found.
r f8-e8 8 16 34 1 1 4 34 8
first 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
q end f8-e8 8 16 34 1 1 4 34 8
bb end f8-e8 8 16 34 1 1 4 34 8
bw end f8-e8 8 16 34 1 1 4 34 8
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
first 8 16 34 1 1 4 34 8
mv is e5-e6, p is #p, o is e5
space e5 is P
38 P e5-e6 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
mv is f7-d6, p is #p, o is f7
space f7 is e1
39 e1 f7-d6 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
1 one bits in var e1
1000 10000 100010 1 1 100 100010 1000
q end f7-d6 8 16 34 1 1 4 34 8
bb end f7-d6 8 16 34 1 1 4 34 8
bw end f7-d6 8 16 34 1 1 4 34 8
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
first 8 16 34 1 1 4 34 8
mv is d1-c1, p is #p, o is d1
space d1 is a1
40 a1 d1-c1 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
1 one bits in var a1
1000 10000 100010 1 1 100 100010 1000
q end d1-c1 8 16 34 1 1 4 34 8
bb end d1-c1 8 16 34 1 1 4 34 8
bw end d1-c1 8 16 34 1 1 4 34 8
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
first 8 16 34 1 1 4 34 8
mv is c7-e7, p is #p, o is c7
space c7 is b1
41 b1 c7-e7 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
1 one bits in var b1
1000 10000 100010 1 1 100 100010 1000
q end c7-e7 8 16 34 1 1 4 34 8
bb end c7-e7 8 16 34 1 1 4 34 8
bw end c7-e7 8 16 34 1 1 4 34 8
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
first 8 16 34 1 1 4 34 8
mv is f1-d1, p is #p, o is f1
space f1 is h1
42 h1 f1-d1 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
1 one bits in var h1
1000 10000 100010 1 1 100 100010 1000
q end f1-d1 8 16 34 1 1 4 34 8
bb end f1-d1 8 16 34 1 1 4 34 8
bw end f1-d1 8 16 34 1 1 4 34 8
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
first 8 16 34 1 1 4 34 8
mv is a8-c8, p is #p, o is a8
space a8 is a1
43 a1 a8-c8 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
1 one bits in var a1
1000 10000 100010 1 1 100 100010 1000
q end a8-c8 8 16 34 1 1 4 34 8
bb end a8-c8 8 16 34 1 1 4 34 8
bw end a8-c8 8 16 34 1 1 4 34 8
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
first 8 16 34 1 1 4 34 8
mv is c1-c8, p is #p, o is c1
space c1 is a1
44 a1 c1-c8 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
1 one bits in var a1
1000 10000 100010 1 1 100 100010 1000
q end c1-c8 8 16 34 1 1 4 34 8
bb end c1-c8 8 16 34 1 1 4 34 8
bw end c1-c8 8 16 34 1 1 4 34 8
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
first 8 16 34 1 1 4 34 8
mv is e8-c8, p is #p, o is e8
space e8 is h1
45 h1 e8-c8 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
1 one bits in var h1
1000 10000 100010 1 1 100 100010 1000
q end e8-c8 8 16 34 1 1 4 34 8
bb end e8-c8 8 16 34 1 1 4 34 8
bw end e8-c8 8 16 34 1 1 4 34 8
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
first 8 16 34 1 1 4 34 8
mv is b2-a3, p is #p, o is b2
space b2 is c1
46 c1 b2-a3 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
2 one bits in var c1
1000 10000 100010 1 1 100 100010 1000
q end b2-a3 8 16 34 1 1 4 34 8
bb end b2-a3 8 16 34 1 1 4 34 8
bw end b2-a3 8 16 34 1 1 4 34 8
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
a1 h1
first 8 16 34 1 1 4 34 8
mv is a7-a5, p is #p, o is a7
space a7 is p
47 p a7-a5 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
mv is a3-d6, p is #p, o is a3
space a3 is c1
48 c1 a3-d6 8 16 34 1 1 4 34 8
1000 10000 100010 1 1 100 100010 1000
2 one bits in var c1
1000 10000 10 1 1 100 100010 1000
g1
Array
(
[0] => a1
[1] => b1
[2] => c1
[3] => d1
[4] => e1
[5] => f1
)
q end a3-d6 8 16 2 1 1 4 32 8
bb end a3-d6 8 16 2 1 1 4 32 8
bw end a3-d6 8 16 2 1 1 4 32 8
first 8 16 2 1 1 4 32 8
1000 10000 10 1 1 100 100000 1000
g1
Array
(
[0] => a1
[1] => b1
[2] => c1
[3] => d1
[4] => e1
[5] => f1
)
q end a3-d6 8 16 2 1 1 4 32 8
bb end a3-d6 8 16 2 1 1 4 32 8
bw end a3-d6 8 16 2 1 1 4 32 8
first 8 16 2 1 1 4 32 8
mv is e7-d6, p is #p, o is e7
space e7 is b1
49 b1 e7-d6 8 16 2 1 1 4 32 8
1000 10000 10 1 1 100 100000 1000
1 one bits in var b1
1000 10000 10 1 1 100 100000 1000
g1
Array
(
[0] => a1
[1] => b1
[2] => c1
[3] => d1
[4] => e1
[5] => f1
)
q end e7-d6 8 16 2 1 1 4 32 8
bb end e7-d6 8 16 2 1 1 4 32 8
bw end e7-d6 8 16 2 1 1 4 32 8
first 8 16 2 1 1 4 32 8
mv is e6-e7, p is #p, o is e6
space e6 is P
50 P e6-e7 8 16 2 1 1 4 32 8
1000 10000 10 1 1 100 100000 1000
mv is c8-e8, p is #p, o is c8
space c8 is h1
51 h1 c8-e8 8 16 2 1 1 4 32 8
1000 10000 10 1 1 100 100000 1000
1 one bits in var h1
1000 10000 10 1 1 100 100000 1000
g1
Array
(
[0] => a1
[1] => b1
[2] => c1
[3] => d1
[4] => e1
[5] => f1
)
q end c8-e8 8 16 2 1 1 4 32 8
bb end c8-e8 8 16 2 1 1 4 32 8
bw end c8-e8 8 16 2 1 1 4 32 8
first 8 16 2 1 1 4 32 8
mv is e2-e6, p is #p, o is e2
space e2 is b1
52 b1 e2-e6 8 16 2 1 1 4 32 8
1000 10000 10 1 1 100 100000 1000
1 one bits in var b1
1000 10000 10 1 1 100 100000 1000
g1
Array
(
[0] => a1
[1] => b1
[2] => c1
[3] => d1
[4] => e1
[5] => f1
)
q end e2-e6 8 16 2 1 1 4 32 8
bb end e2-e6 8 16 2 1 1 4 32 8
bw end e2-e6 8 16 2 1 1 4 32 8
first 8 16 2 1 1 4 32 8
mv is g8-h8, p is #p, o is g8
space g8 is g1
53 g1 g8-h8 8 16 2 1 1 4 32 8
1000 10000 10 1 1 100 100000 1000
1 one bits in var g1
1000 10000 10 1 1 100 100000 1000
g1
Array
(
[0] => a1
[1] => b1
[2] => c1
[3] => d1
[4] => e1
[5] => f1
)
q end g8-h8 8 16 2 1 1 4 32 8
bb end g8-h8 8 16 2 1 1 4 32 8
bw end g8-h8 8 16 2 1 1 4 32 8
first 8 16 2 1 1 4 32 8
mv is e6-d6, p is #p, o is e6
space e6 is b1
54 b1 e6-d6 8 16 2 1 1 4 32 8
1000 10000 10 1 1 100 100000 1000
1 one bits in var b1
1000 10000 10 1 1 100 100000 1000
g1
Array
(
[0] => a1
[1] => b1
[2] => c1
[3] => d1
[4] => e1
[5] => f1
)
q end e6-d6 8 16 2 1 1 4 32 8
bb end e6-d6 8 16 2 1 1 4 32 8
bw end e6-d6 8 16 2 1 1 4 32 8
first 8 16 2 1 1 4 32 8
mv is b7-a8, p is #p, o is b7
space b7 is c1
55 c1 b7-a8 8 16 2 1 1 4 32 8
1000 10000 10 1 1 100 100000 1000
1 one bits in var c1
1000 10000 10 1 1 100 100000 1000
g1
Array
(
[0] => a1
[1] => b1
[2] => c1
[3] => d1
[4] => e1
[5] => f1
)
q end b7-a8 8 16 2 1 1 4 32 8
bb end b7-a8 8 16 2 1 1 4 32 8
bw end b7-a8 8 16 2 1 1 4 32 8
first 8 16 2 1 1 4 32 8
Continue because mv is empty
firstrank is RQBNNBKR
Castling with Rook! h1 f1 a1 d1 h1 f1