Skip to content

Commit

Permalink
fixed bug with game_over
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Ali committed Dec 10, 2019
1 parent 36d3174 commit e0c024b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion round.ml
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ module Round:RoundSig = struct
} |> bot_actions

let game_over t =
let is_over = List.exists (fun s -> s >= 2) t.total_scores in
let is_over = List.exists (fun s -> s >= 100) t.total_scores in
let winning_player = List.fold_left
(fun int acc -> if int < acc then int else acc)
Int.max_int t.total_scores in
Expand Down

0 comments on commit e0c024b

Please sign in to comment.