1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
board[1][0]=&pawn(piece(0,1,1,true));
board[1][1]=&pawn(piece(1,1,1,true));
board[1][2]=&pawn(piece(2,1,1,true));
board[1][3]=&pawn(piece(3,1,1,true));
board[1][4]=&pawn(piece(4,1,1,true));
board[1][5]=&pawn(piece(5,1,1,true));
board[1][6]=&pawn(piece(6,1,1,true));
board[1][7]=&pawn(piece(7,1,1,true));
board[0][0]=&rook(piece(0,0,5,true));
board[0][1]=&knight(piece(1,0,3,true));
board[0][2]=&bishop(piece(2,0,3,true));
board[0][3]=&queen(piece(3,0,9,true));
board[0][4]=&king(piece(4,0,100,true));
board[0][5]=&bishop(piece(5,0,3,true));
board[0][6]=&knight(piece(6,0,3,true));
board[0][7]=&rook(piece(7,0,5,true));
board[6][0]=&pawn(piece(0,6,1,false));
board[6][1]=&pawn(piece(1,6,1,false));
board[6][2]=&pawn(piece(2,6,1,false));
board[6][3]=&pawn(piece(3,6,1,false));
board[6][4]=&pawn(piece(4,6,1,false));
board[6][5]=&pawn(piece(5,6,1,false));
board[6][6]=&pawn(piece(6,6,1,false));
board[6][7]=&pawn(piece(7,6,1,false));
board[7][0]=&rook(piece(0,7,5,false));
board[7][1]=&knight(piece(1,7,3,false));
board[7][2]=&bishop(piece(2,7,3,false));
board[7][3]=&queen(piece(3,7,9,false));
board[7][4]=&king(piece(4,7,100,false));
board[7][5]=&bishop(piece(5,7,3,false));
board[7][6]=&knight(piece(6,7,3,false));
board[7][7]=&rook(piece(7,7,5,false));
for(int i=2; i<6; i++)
{
for(int j=0; j<8; j++)
{
board[i][j]=&piece();
}
}
|