pub fn score(&self, color: Color) -> isize {
        let mut score = 0;
        for (pos, piece) in self.get_pieces_by_color(color) {
            score += self.piece_score(pos, piece);
        }
        for (pos, piece) in self.get_pieces_by_color(color.other()) {
            score -= self.piece_score(pos, piece);
        }
        score
    }
// get score of board in centipawns
get score of board in centipawns
get score of board in centipawns
pub fn score(&self, color: Color) -> isize {
        let mut score = 0;
        for (pos, piece) in self.get_pieces_by_color(color) {
            score += self.piece_score(pos, piece);
        }
        for (pos, piece) in self.get_pieces_by_color(color.other()) {
            score -= self.piece_score(pos, piece);
        }
        score
    }
pub fn score ( & self , color : Color ) -> isize { let mut score = 0 ; for ( pos , piece ) in self . get_pieces_by_color ( color ) { score += self . piece_score ( pos , piece ) ; } for ( pos , piece ) in self . get_pieces_by_color ( color . other ( ) ) { score -= self . piece_score ( pos , piece ) ; } score }
get score of board in centipawns
get score of board in centipawns
&self
color
Color