refactor: floats, tests
This commit is contained in:
@@ -48,11 +48,12 @@ func (c *Cache) TurnCalculateVotes() []int {
|
||||
|
||||
c.g.Votes = 0
|
||||
for ri, votes := range raceVotes {
|
||||
c.g.Race[ri].Votes = votes
|
||||
c.g.Votes += votes
|
||||
v := game.F(votes)
|
||||
c.g.Race[ri].Votes = v
|
||||
c.g.Votes += v
|
||||
}
|
||||
|
||||
return votingWinners(calc, c.g.Votes)
|
||||
return votingWinners(calc, c.g.Votes.F())
|
||||
}
|
||||
|
||||
func VotingGraph(races []game.Race, raceIndex func(uuid.UUID) int) []*VoteNode {
|
||||
|
||||
Reference in New Issue
Block a user