From 09947e3059be0017f79c67a9e164dc62a766c77b Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Tue, 19 Nov 2024 10:05:14 +0100 Subject: [PATCH] typo i krokodillespillet --- .../Krokodillespillet/Krokodillespillet/Program.cs | 6 +++--- Emne 3/Terminal-ui/Terminal-ui/#Program.cs# | 12 ++++++++++++ Emne 3/Terminal-ui/Terminal-ui/Program.cs | 4 ++++ Emne 3/shell.nix | 3 ++- 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 Emne 3/Terminal-ui/Terminal-ui/#Program.cs# diff --git a/Emne 3/Krokodillespillet/Krokodillespillet/Program.cs b/Emne 3/Krokodillespillet/Krokodillespillet/Program.cs index e0dc598..b0b65a2 100644 --- a/Emne 3/Krokodillespillet/Krokodillespillet/Program.cs +++ b/Emne 3/Krokodillespillet/Krokodillespillet/Program.cs @@ -20,13 +20,13 @@ namespace KrokodilleSpillet var rand1 = new Random(); var rand2 = new Random(); int randomNumber = rand1.Next(0,11); - int randomNumer2 = rand2.Next(0,11); + int randomNumber2 = rand2.Next(0,11); Console.WriteLine("Skriv inn riktig > < eller =. Alle andre tegn avslutter programmet"); Console.WriteLine($"Du har {poeng} poeng"); - Console.WriteLine($"Hva er riktig tegn i utrykket {randomNumber} _ {randomNumer2}"); + Console.WriteLine($"Hva er riktig tegn i utrykket {randomNumber} _ {randomNumber2}"); string answer = Console.ReadLine(); - GetRightAnswer(randomNumber, randomNumer2); + GetRightAnswer(randomNumber, randomNumber2); CheckAnswer(answer); } } diff --git a/Emne 3/Terminal-ui/Terminal-ui/#Program.cs# b/Emne 3/Terminal-ui/Terminal-ui/#Program.cs# new file mode 100644 index 0000000..eae2538 --- /dev/null +++ b/Emne 3/Terminal-ui/Terminal-ui/#Program.cs# @@ -0,0 +1,12 @@ +using System; +using Terminal.Gui; + + +Application.Run ().Dispose (); + +Application.shutdown (); + +namespace Hello{ + class +} + diff --git a/Emne 3/Terminal-ui/Terminal-ui/Program.cs b/Emne 3/Terminal-ui/Terminal-ui/Program.cs index 36aac02..2551f14 100644 --- a/Emne 3/Terminal-ui/Terminal-ui/Program.cs +++ b/Emne 3/Terminal-ui/Terminal-ui/Program.cs @@ -6,3 +6,7 @@ Application.Run ().Dispose (); Application.shutdown (); +namespace Hello{ + +} + diff --git a/Emne 3/shell.nix b/Emne 3/shell.nix index 947634f..9431d06 100644 --- a/Emne 3/shell.nix +++ b/Emne 3/shell.nix @@ -10,5 +10,6 @@ mkShell { sdk_8_0 sdk_9_0 ]) + csharp-ls ]; -} \ No newline at end of file +}