From a90c7d125f01676d5ecc836a527c96af4ccabcc1 Mon Sep 17 00:00:00 2001 From: ZacharyPatten Date: Tue, 24 Oct 2023 23:08:03 -0500 Subject: [PATCH] clicker clean up --- Projects/Clicker/Program.cs | 2 +- Projects/Website/Games/Clicker/Clicker.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/Clicker/Program.cs b/Projects/Clicker/Program.cs index 83540dd0..58d094db 100644 --- a/Projects/Clicker/Program.cs +++ b/Projects/Clicker/Program.cs @@ -92,7 +92,7 @@ You Win! if (index < keyCount && key != previous) { previous = key; - clicks += index > 1 ? BigInteger.Pow(10, index > 1 ? index - 1 : 0) / (index - 1) : 1; + clicks += index > 1 ? BigInteger.Pow(10, index - 1) / (index - 1) : 1; } break; case ConsoleKey.Escape: goto MainMenu; diff --git a/Projects/Website/Games/Clicker/Clicker.cs b/Projects/Website/Games/Clicker/Clicker.cs index d147ec7c..40c6703f 100644 --- a/Projects/Website/Games/Clicker/Clicker.cs +++ b/Projects/Website/Games/Clicker/Clicker.cs @@ -105,7 +105,7 @@ await Console.WriteLine( if (index < keyCount && key != previous) { previous = key; - clicks += index > 1 ? BigInteger.Pow(10, index > 1 ? index - 1 : 0) / (index - 1) : 1; + clicks += index > 1 ? BigInteger.Pow(10, index - 1) / (index - 1) : 1; } break; case ConsoleKey.Escape: goto MainMenu;