Beispiel #1
0
func (game *gameMemo) willBestScore(p *plan.Plan, it int) int {
	willBestScore := p.Score()
	for i := it; i < game.numStone; i++ {
		willBestScore -= game.stoneBase[i].Count()
	}
	return willBestScore
}
Beispiel #2
0
func comparePlan(f, s *plan.Plan) rune {
	if f.Score() < s.Score() {
		return '>'
	} else if f.Score() == s.Score() && f.NumberOfPiece() < s.NumberOfPiece() {
		return '>'
	} else if f.Score() == s.Score() && f.NumberOfPiece() == s.NumberOfPiece() {
		return '='
	}
	return '<'
}