Skip to content

Commit

Permalink
clicker clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyPatten committed Oct 25, 2023
1 parent 7da34b8 commit a90c7d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Projects/Clicker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ educational example.
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;
Expand Down
2 changes: 1 addition & 1 deletion Projects/Website/Games/Clicker/Clicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ educational example.
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;
Expand Down

0 comments on commit a90c7d1

Please sign in to comment.