Skip to content

Commit

Permalink
Non blocking score for musician
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtran committed Jul 8, 2023
1 parent ab8ebb1 commit b22f252
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Icfpc2023/Scoring.fs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ let private CalculateAttendeeNoBlockingScore (musicians: Musician[]) (attendee:
CalculateAttendeeMusicianScore attendee musician
)

let CalculateMusicianNoBlockingScore (attendees: Attendee[]) (musician: Musician): Score =
Seq.indexed attendees
|> Seq.sumBy(fun (i, attendee) ->
CalculateAttendeeMusicianScore attendee musician
)

let CalculateScore(problem: Problem) (solution: Solution): Score =
let musicians =
problem.Musicians
Expand Down

0 comments on commit b22f252

Please sign in to comment.