func scorePieces(pieces string) int {
	score := 0
	var scores = map[rune]int{
		'r': 5,
		'n': 3,
		'b': 3,
		'q': 9,
		'k': 0,
		'p': 1,
	}
	for _, piece := range pieces {
		score += scores[piece]
	}
	return score
}
// scorePieces returns the cumulative score for the piece string provided
// It expects a result from the Advantages function
scorePieces returns the cumulative score for the piece string provided
It expects a result from the Advantages function
// scorePieces returns the cumulative score for the piece string provided // It expects a result from the Advantages function
func scorePieces(pieces string) int {
	score := 0
	var scores = map[rune]int{
		'r': 5,
		'n': 3,
		'b': 3,
		'q': 9,
		'k': 0,
		'p': 1,
	}
	for _, piece := range pieces {
		score += scores[piece]
	}
	return score
}
func scorePieces ( pieces string ) int { score := 0 var scores = map [ rune ] int { 'r' : 5 , 'n' : 3 , 'b' : 3 , 'q' : 9 , 'k' : 0 , 'p' : 1 , } for _ , piece := range pieces { score += scores [ piece ] } return score }
scorePieces returns the cumulative score for the piece string provided
It expects a result from the Advantages function
scorePieces returns the cumulative score for the piece string provided It expects a result from the Advantages function