From 3baaeae7c4e53ec7347dbc0d54205e24652ce7a5 Mon Sep 17 00:00:00 2001 From: TheTaques <35156969+TheTaques@users.noreply.github.com> Date: Fri, 27 Aug 2021 14:07:46 +0200 Subject: [PATCH] Fix non integer error --- bonemarketsolver/challenge_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bonemarketsolver/challenge_functions.py b/bonemarketsolver/challenge_functions.py index cb025ce..534e291 100644 --- a/bonemarketsolver/challenge_functions.py +++ b/bonemarketsolver/challenge_functions.py @@ -24,4 +24,4 @@ def mean_outcome(success: int, failure: int, chance: float): mean_failure = failure*(1-chance) combined_mean_outcome = mean_success + mean_failure - return combined_mean_outcome + return int(combined_mean_outcome)