无事,直接回车即可,无错误
例如:
char Positionvalue[2][7][10][9]={ /*棋盘棋子位置价值评定*/
{/*車*/
{9, 12, 10, 10, 10, 10, 10, 12, 9,
11, 12, 10, 13, 10, 13, 10, 12, 11,
10, 12, 10, 11, 10, 11, 10, 12, 10,
10, 11, 10, 11, 10, 11, 10, 11, 10,
10, 14, 10, 14, 10, 14, 10, 14, 10,
10, 13, 10, 11, 10, 11, 10, 13, 10,
10, 11, 10, 11, 10, 11, 10, 11, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 13, 11, 11, 10, 11, 11, 13, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10},
{/*馬*/
10, 5, 10, 10, 10, 10, 10, 5, 10,
10, 11, 12, 10, 3, 10, 12, 11, 10,
10, 12, 13, 10, 10, 10, 13, 12, 10,
10, 12, 13, 13, 13, 13, 13, 12, 10,
10, 13, 14, 14, 14, 14, 14, 13, 10,
10, 13, 14, 14, 14, 14, 14, 13, 10,
10, 13, 14, 14, 14, 14, 14, 13, 10,
10, 13, 14, 14, 14, 14, 14, 13, 10,
10, 11, 12, 12, 12, 12, 12, 11, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10},
{/*象*/
0, 0, 10, 0, 0, 0, 10, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
8, 0, 0, 0, 13, 0, 0, 0, 8,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 7, 0, 0, 0, 7, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0},
{/*士*/
0, 0, 0, 10, 0, 10, 0, 0, 0,
0, 0, 0, 0, 12, 0, 0, 0, 0,
0, 0, 0, 9, 0, 9, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0},
{/*将*/
0, 0, 0, 9, 13, 9, 0, 0, 0,
0, 0, 0, 5, 5, 5, 0, 0, 0,
0, 0, 0, 1, 1, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0},
{/*炮*/
10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 11, 13, 13, 15, 13, 13, 11, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 11, 11, 11, 11, 11, 11, 11, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10},
{/*卒*/
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 2, 0, 5, 0, 2, 0, 1,
1, 0, 3, 0, 1, 0, 3, 0, 1,
10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 11, 11, 12, 12, 12, 11, 11, 10,
10, 11, 11, 13, 13, 13, 11, 11, 10,
10, 11, 11, 13, 12, 13, 11, 11, 10,
1, 2, 3, 4, 4, 4, 3, 2, 1}},
{{/*俥*/
10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 12, 11, 11, 10, 11, 11, 12, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 11, 10, 11, 10, 11, 10, 11, 10,
10, 13, 10, 11, 10, 11, 10, 13, 10,
10, 14, 10, 14, 10, 14, 10, 14, 10,
10, 11, 10, 11, 10, 11, 10, 11, 10,
10, 12, 10, 11, 10, 11, 10, 12, 10,
11, 12, 10, 13, 10, 13, 10, 12, 11,
9, 12, 10, 10, 10, 10, 10, 12, 9},
{/*傌*/
10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 11, 12, 12, 12, 12, 12, 11, 10,
10, 13, 14, 14, 14, 14, 14, 13, 10,
10, 13, 14, 14, 14, 14, 14, 13, 10,
10, 13, 14, 14, 14, 14, 14, 13, 10,
10, 13, 14, 14, 14, 14, 14, 13, 10,
10, 12, 13, 13, 13, 13, 13, 12, 10,
10, 12, 13, 10, 10, 10, 13, 12, 10,
10, 11, 12, 10, 1, 10, 12, 11, 10,
10, 5, 10, 10, 10, 10, 10, 5, 10},
{/*相*/
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 7, 0, 0, 0, 7, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
8, 0, 0, 0, 13, 0, 0, 0, 8,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 10, 0, 0, 0, 10, 0, 0},
{/*仕*/
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 9, 0, 9, 0, 0, 0,
0, 0, 0, 0, 12, 0, 0, 0, 0,
0, 0, 0, 10, 0, 10, 0, 0, 0},
{/*帅*/
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1, 1, 1, 0, 0, 0,
0, 0, 0, 5, 5, 5, 0, 0, 0,
0, 0, 0, 9, 13, 9, 0, 0, 0},
{/*砲*/
10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 11, 10, 10, 10, 10, 10, 11, 10,
10, 11, 11, 11, 11, 11, 11, 11, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 11, 13, 13, 15, 13, 13, 11, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10},
{/*兵*/
1, 2, 3, 4, 4, 4, 3, 2, 1,
10, 11, 11, 13, 12, 13, 11, 11, 10,
10, 11, 11, 13, 13, 13, 11, 11, 10,
10, 11, 11, 12, 12, 12, 11, 11, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10,
1, 0, 3, 0, 1, 0, 3, 0, 1,
1, 0, 2, 0, 5, 0, 2, 0, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0}}};
[此贴子已经被作者于2006-11-30 21:06:59编辑过]