From 1eb629c734a6b315d77783a69148b30ff7a27b81 Mon Sep 17 00:00:00 2001 From: Mark Seilenthal <seilenthalma100744@th-nuernberg.de> Date: Sun, 15 Dec 2024 22:23:02 +0100 Subject: [PATCH] Updated Timer --- MastermindController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MastermindController.cs b/MastermindController.cs index 2741def..269b725 100644 --- a/MastermindController.cs +++ b/MastermindController.cs @@ -282,7 +282,7 @@ namespace Controller int generatedCodeLength = game.GetCodeLength(); int timerDuration = game.GetTimerDuration(); - Console.WriteLine($"You have {timerDuration / 1000} seconds to guess the code!"); + Console.WriteLine($"You have {(timerDuration / 1000)/60} minutes to guess the code!"); var timer = new System.Timers.Timer(timerDuration); timer.Elapsed += (sender, e) => TimerElapsed(); -- GitLab