From bb29bf2c0d097203f5e1b4b9b940a4358add256b Mon Sep 17 00:00:00 2001 From: BlitGaming Date: Tue, 23 Nov 2021 17:51:40 +0700 Subject: [PATCH 1/9] Initial Commit --- src/Games/ReactGame/Program.cs | 1 + src/Games/ReactGame/ReactGame.csproj | 10 ++++++++++ src/Games/ReactGame/ReactGame.sln | 16 ++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 src/Games/ReactGame/Program.cs create mode 100644 src/Games/ReactGame/ReactGame.csproj create mode 100644 src/Games/ReactGame/ReactGame.sln diff --git a/src/Games/ReactGame/Program.cs b/src/Games/ReactGame/Program.cs new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/src/Games/ReactGame/Program.cs @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/Games/ReactGame/ReactGame.csproj b/src/Games/ReactGame/ReactGame.csproj new file mode 100644 index 0000000..b9de063 --- /dev/null +++ b/src/Games/ReactGame/ReactGame.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/src/Games/ReactGame/ReactGame.sln b/src/Games/ReactGame/ReactGame.sln new file mode 100644 index 0000000..e2adb7c --- /dev/null +++ b/src/Games/ReactGame/ReactGame.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactGame", "ReactGame.csproj", "{ADED3EB6-49F6-46AE-8FFE-E5C315EF0819}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ADED3EB6-49F6-46AE-8FFE-E5C315EF0819}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ADED3EB6-49F6-46AE-8FFE-E5C315EF0819}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ADED3EB6-49F6-46AE-8FFE-E5C315EF0819}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ADED3EB6-49F6-46AE-8FFE-E5C315EF0819}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal From 1103a12e0265ae730fe80127f754dfe15d22d6d4 Mon Sep 17 00:00:00 2001 From: BlitGaming Date: Tue, 23 Nov 2021 17:52:19 +0700 Subject: [PATCH 2/9] Initial Commit --- src/Games/ReactGame/Program.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Games/ReactGame/Program.cs b/src/Games/ReactGame/Program.cs index 5f28270..4767711 100644 --- a/src/Games/ReactGame/Program.cs +++ b/src/Games/ReactGame/Program.cs @@ -1 +1,9 @@ - \ No newline at end of file +namespace ReactGame; + +public static class Program +{ + public static void Main() + { + + } +} \ No newline at end of file From 31c41d395b34fa95e2e92fa7c2e0274bbb2af6eb Mon Sep 17 00:00:00 2001 From: BlitGaming Date: Tue, 23 Nov 2021 19:00:07 +0700 Subject: [PATCH 3/9] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D1=86=D0=B5=D1=81=D1=81?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=B4=D0=B8=D0=BD=D0=B3=D0=B0....?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Games/ReactGame/Core/Game.cs | 93 +++++++++++++++++++++++++ src/Games/ReactGame/Core/Menu.cs | 43 ++++++++++++ src/Games/ReactGame/Core/PreviewMenu.cs | 56 +++++++++++++++ src/Games/ReactGame/Program.cs | 12 +++- 4 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 src/Games/ReactGame/Core/Game.cs create mode 100644 src/Games/ReactGame/Core/Menu.cs create mode 100644 src/Games/ReactGame/Core/PreviewMenu.cs diff --git a/src/Games/ReactGame/Core/Game.cs b/src/Games/ReactGame/Core/Game.cs new file mode 100644 index 0000000..a5c6c9e --- /dev/null +++ b/src/Games/ReactGame/Core/Game.cs @@ -0,0 +1,93 @@ +namespace ReactGame.Core; + +public class Game : Menu +{ + private Random _random; + + public Game() + { + _random = new Random(); + } + + public override void Draw() + { + + } + + private void Update() + { + Console.Clear(); + + WritingText("ReactGame\n\n", 0.2f, ConsoleColor.Cyan); + + DrawSection(); + } + + private void DrawNumbers(int leftCount, int rightCount) + { + for (int i = 1; i <= leftCount + rightCount + 1; i++) + { + WriteText(i.ToString(), ConsoleColor.White); + } + } + /// + /// Рисует секцию блоков + /// + /// Номер целевого блока слева направо + private int DrawSection() + { + int leftCount = _random.Next(10); + int rightCount = _random.Next(10); + + DrawNumbers(leftCount, rightCount); + + int targetBlock = -1; + + for (int i = 0; i <= leftCount; i++) + { + if (i == leftCount) + { + WriteText("* ", ConsoleColor.Yellow); + + targetBlock = leftCount + 1; + } + + int symbol = _random.Next(2); + + switch (symbol) + { + case 0: + WriteText("= "); + break; + case 1: + WriteText("+ "); + break; + case 2: + WriteText("- "); + break; + } + } + + for (int i = 0; i <= rightCount; i++) + { + if (rightCount <= 0) break; + + int symbol = _random.Next(2); + + switch (symbol) + { + case 0: + WriteText("="); + break; + case 1: + WriteText("+"); + break; + case 2: + WriteText("-"); + break; + } + } + + return targetBlock; + } +} \ No newline at end of file diff --git a/src/Games/ReactGame/Core/Menu.cs b/src/Games/ReactGame/Core/Menu.cs new file mode 100644 index 0000000..c84fa87 --- /dev/null +++ b/src/Games/ReactGame/Core/Menu.cs @@ -0,0 +1,43 @@ +namespace ReactGame.Core; + +public abstract class Menu +{ + /// + /// Отрисовывает меню + /// + public abstract void Draw(); + + /// + /// Выводит цветной текст + /// + /// Выводимый текст + /// Используемый цвет + private protected static void WriteText( + string text, ConsoleColor color = ConsoleColor.Gray) + { + Console.ForegroundColor = color; + Console.Write(text); + + Console.ForegroundColor = ConsoleColor.Gray; + } + + /// + /// Посимвольно выводит цветной текст + /// + /// Выводимый текст + /// Интервал между выводом 1 символа + /// Используемый цвет + private protected static void WritingText( + string text, float delay, ConsoleColor color = ConsoleColor.Gray) + { + Console.ForegroundColor = color; + + foreach (var character in text) + { + Console.Write(character); + Thread.Sleep((int) (delay * 1000)); + } + + Console.ForegroundColor = ConsoleColor.Gray; + } +} \ No newline at end of file diff --git a/src/Games/ReactGame/Core/PreviewMenu.cs b/src/Games/ReactGame/Core/PreviewMenu.cs new file mode 100644 index 0000000..27bcf89 --- /dev/null +++ b/src/Games/ReactGame/Core/PreviewMenu.cs @@ -0,0 +1,56 @@ +#pragma warning disable CS8794 +namespace ReactGame.Core; + +public class PreviewMenu : Menu +{ + private readonly Random _random; + + public PreviewMenu() + { + _random = new Random(); + } + + public override void Draw() + { + WritingText("ReactGame\n\n", 0.1f, GenerateColor()); + + string? userInput = Console.ReadLine(); + + if (userInput == null) throw new NullReferenceException(); + if (userInput is not ("y" and "Y" and "n" and "N")) PoshlaNahui(); + if (userInput is not ("n" and "N")) Program.Game.Draw(); + + NoNotAllowed(); + } + + /// + /// Генерирует рандомный цвет + /// + /// ConsoleColor + private ConsoleColor GenerateColor() + => (ConsoleColor)_random.Next(9, 15); + + /// + /// Посылает тупую домохозяйку нахуй + /// + private static void PoshlaNahui() + { + Console.Clear(); + + WritingText( + "Тебе русским языком сказали сука, введите Y или N, ты чё делаешь?", 0.1f); + Thread.Sleep(1000); + + Environment.Exit(777); + } + + private static void NoNotAllowed() + { + Console.Clear(); + + WritingText("Всмысле блять нет? А зачем ты вообще её запустил?", 0.1f); + Thread.Sleep(1000); + + Environment.Exit(228); + } +} \ No newline at end of file diff --git a/src/Games/ReactGame/Program.cs b/src/Games/ReactGame/Program.cs index 4767711..1860f1e 100644 --- a/src/Games/ReactGame/Program.cs +++ b/src/Games/ReactGame/Program.cs @@ -1,9 +1,19 @@ -namespace ReactGame; +using ReactGame.Core; +// ReSharper disable InconsistentNaming +#pragma warning disable CS8618 + +namespace ReactGame; public static class Program { + private static PreviewMenu PreviewMenu; + public static Game Game; + public static void Main() { + PreviewMenu = new PreviewMenu(); + Game = new Game(); + PreviewMenu.Draw(); } } \ No newline at end of file From 0e1617a5b8d42cd02645f184c72359b68228cac1 Mon Sep 17 00:00:00 2001 From: BlitGaming Date: Tue, 23 Nov 2021 19:54:49 +0700 Subject: [PATCH 4/9] Coding process.. --- src/Games/ReactGame/Core/Game.cs | 71 ++++++++++++++++++------- src/Games/ReactGame/Core/PreviewMenu.cs | 21 ++++++-- src/Games/ReactGame/Program.cs | 7 +-- 3 files changed, 73 insertions(+), 26 deletions(-) diff --git a/src/Games/ReactGame/Core/Game.cs b/src/Games/ReactGame/Core/Game.cs index a5c6c9e..e3b364c 100644 --- a/src/Games/ReactGame/Core/Game.cs +++ b/src/Games/ReactGame/Core/Game.cs @@ -1,46 +1,79 @@ -namespace ReactGame.Core; +using System.Diagnostics; + +namespace ReactGame.Core; public class Game : Menu { private Random _random; + private int _goals; public Game() { _random = new Random(); } + /// + /// Цикл отрисовки игры + /// public override void Draw() { + while (true) + { + if (!Update()) break; + } + // Exit logic } - private void Update() + /// + /// Отрисовывает один кадр игры + /// + /// Продолжать ли игру? + private bool Update() { Console.Clear(); - - WritingText("ReactGame\n\n", 0.2f, ConsoleColor.Cyan); - - DrawSection(); - } - private void DrawNumbers(int leftCount, int rightCount) - { - for (int i = 1; i <= leftCount + rightCount + 1; i++) + int targetBlock = DrawSection(); + var stopWatch = new Stopwatch(); + + stopWatch.Start(); + + string? rawUserInput = Console.ReadLine(); + if (rawUserInput == "exit") return false; + + bool inputIsWrong = !int.TryParse(rawUserInput, out var userInput); + + stopWatch.Stop(); + + if (stopWatch.ElapsedMilliseconds > 5000) { - WriteText(i.ToString(), ConsoleColor.White); + WriteText("Время вышло!"); + Thread.Sleep(1000); + + return true; } + + if (inputIsWrong || userInput != targetBlock) + { + WriteText("Неверный ответ"); + + return true; + } + + _goals++; + + return true; } + /// /// Рисует секцию блоков /// /// Номер целевого блока слева направо private int DrawSection() { - int leftCount = _random.Next(10); - int rightCount = _random.Next(10); + int leftCount = _random.Next(7); + int rightCount = _random.Next(7); - DrawNumbers(leftCount, rightCount); - int targetBlock = -1; for (int i = 0; i <= leftCount; i++) @@ -77,17 +110,19 @@ private int DrawSection() switch (symbol) { case 0: - WriteText("="); + WriteText("= "); break; case 1: - WriteText("+"); + WriteText("+ "); break; case 2: - WriteText("-"); + WriteText("- "); break; } } + Console.Write("\n\n"); + return targetBlock; } } \ No newline at end of file diff --git a/src/Games/ReactGame/Core/PreviewMenu.cs b/src/Games/ReactGame/Core/PreviewMenu.cs index 27bcf89..387a9af 100644 --- a/src/Games/ReactGame/Core/PreviewMenu.cs +++ b/src/Games/ReactGame/Core/PreviewMenu.cs @@ -16,11 +16,22 @@ public override void Draw() string? userInput = Console.ReadLine(); - if (userInput == null) throw new NullReferenceException(); - if (userInput is not ("y" and "Y" and "n" and "N")) PoshlaNahui(); - if (userInput is not ("n" and "N")) Program.Game.Draw(); - - NoNotAllowed(); + switch (userInput) + { + case null: + throw new NullReferenceException(); + case "n": + case "N": + NoNotAllowed(); + break; + case "y": + case "Y": + Program.Game.Draw(); + break; + default: + PoshlaNahui(); + break; + } } /// diff --git a/src/Games/ReactGame/Program.cs b/src/Games/ReactGame/Program.cs index 1860f1e..13a9e57 100644 --- a/src/Games/ReactGame/Program.cs +++ b/src/Games/ReactGame/Program.cs @@ -1,4 +1,5 @@ -using ReactGame.Core; +using System.Runtime.CompilerServices; +using ReactGame.Core; // ReSharper disable InconsistentNaming #pragma warning disable CS8618 @@ -6,14 +7,14 @@ namespace ReactGame; public static class Program { - private static PreviewMenu PreviewMenu; + public static PreviewMenu PreviewMenu; public static Game Game; public static void Main() { PreviewMenu = new PreviewMenu(); Game = new Game(); - + PreviewMenu.Draw(); } } \ No newline at end of file From b8e7932becdae7f89542c8a441a22f6a2cb5eeb9 Mon Sep 17 00:00:00 2001 From: BlitGaming Date: Wed, 24 Nov 2021 15:20:15 +0700 Subject: [PATCH 5/9] first beta version --- src/Games/ReactGame/Core/Difficulty.cs | 11 ++++ src/Games/ReactGame/Core/Game.cs | 68 ++++++++++++------------- src/Games/ReactGame/Core/PreviewMenu.cs | 66 ++++++++++++++++++++++-- src/Games/ReactGame/Program.cs | 24 ++++++++- 4 files changed, 127 insertions(+), 42 deletions(-) create mode 100644 src/Games/ReactGame/Core/Difficulty.cs diff --git a/src/Games/ReactGame/Core/Difficulty.cs b/src/Games/ReactGame/Core/Difficulty.cs new file mode 100644 index 0000000..ad0e01e --- /dev/null +++ b/src/Games/ReactGame/Core/Difficulty.cs @@ -0,0 +1,11 @@ +namespace ReactGame.Core; + +// ReSharper disable UnusedMember.Global +public enum Difficulty +{ + Training = 1, + Easy = 2, + Normal = 3, + Hard = 4, + JoJoMode = 5 +} \ No newline at end of file diff --git a/src/Games/ReactGame/Core/Game.cs b/src/Games/ReactGame/Core/Game.cs index e3b364c..8b414b5 100644 --- a/src/Games/ReactGame/Core/Game.cs +++ b/src/Games/ReactGame/Core/Game.cs @@ -13,56 +13,50 @@ public Game() } /// - /// Цикл отрисовки игры + /// Бесконечный цикл отрисовки кадров /// public override void Draw() { while (true) { - if (!Update()) break; - } - - // Exit logic - } + Console.Clear(); - /// - /// Отрисовывает один кадр игры - /// - /// Продолжать ли игру? - private bool Update() - { - Console.Clear(); + int targetBlock = DrawSection(); + var stopWatch = new Stopwatch(); - int targetBlock = DrawSection(); - var stopWatch = new Stopwatch(); + stopWatch.Start(); - stopWatch.Start(); + string? userInput = Console.ReadLine(); + int.TryParse(userInput, out var inputNumber); + + if (userInput == "exit") + { + WriteText("\nВыход из игры...", ConsoleColor.Yellow); + Thread.Sleep(1000); - string? rawUserInput = Console.ReadLine(); - if (rawUserInput == "exit") return false; + break; + } - bool inputIsWrong = !int.TryParse(rawUserInput, out var userInput); + stopWatch.Stop(); - stopWatch.Stop(); + if (stopWatch.ElapsedMilliseconds > 5000 / ((int)Program.Difficulty / 2)) + { + WriteText("\nВремя вышло!", ConsoleColor.Red); + Thread.Sleep(1000); - if (stopWatch.ElapsedMilliseconds > 5000) - { - WriteText("Время вышло!"); - Thread.Sleep(1000); + break; + } - return true; - } + if (inputNumber != targetBlock) + { + WriteText("\nНеверный ответ", ConsoleColor.Red); + Thread.Sleep(1000); - if (inputIsWrong || userInput != targetBlock) - { - WriteText("Неверный ответ"); + break; + } - return true; + _goals++; } - - _goals++; - - return true; } /// @@ -71,11 +65,13 @@ private bool Update() /// Номер целевого блока слева направо private int DrawSection() { - int leftCount = _random.Next(7); - int rightCount = _random.Next(7); + int leftCount = _random.Next(4 * (int) Program.Difficulty); + int rightCount = _random.Next(4 * (int) Program.Difficulty); int targetBlock = -1; + WriteText($"Текущее количество очков: {_goals}.\n", ConsoleColor.Blue); + for (int i = 0; i <= leftCount; i++) { if (i == leftCount) diff --git a/src/Games/ReactGame/Core/PreviewMenu.cs b/src/Games/ReactGame/Core/PreviewMenu.cs index 387a9af..79f1604 100644 --- a/src/Games/ReactGame/Core/PreviewMenu.cs +++ b/src/Games/ReactGame/Core/PreviewMenu.cs @@ -12,9 +12,67 @@ public PreviewMenu() public override void Draw() { - WritingText("ReactGame\n\n", 0.1f, GenerateColor()); + Console.Clear(); + + WritingText("ReactGame\n\n", 0.05f, GenerateColor()); + + if (Program.ShowsHelp) + { + ShowHelp(); + } + + AskForDifficulty(); + AskForStartGame(); + } + + private static void ShowHelp() + { + WritingText( + "\nПомощь по игре:\n" + + "Цель игры - назвать правильный порядковый номер жёлтой звезды слева направо.\n" + + "Первый блок слева может быть звездой, а может быть космическим мусором. (Порядковый номер 1).\n" + + "Космический мусор - серый, звезда - жёлтая.\n" + + "Длина строки с блоками меняется рандомно и зависит от выбранной сложности.\n" + + "Чтобы выключить отображение помощи при каждом запуске, запускайте игру с параметром: -nh | -NH | --no-help.\n" + + "Нажмите любую кнопку, чтобы перейти к игре.", 0.075f, ConsoleColor.Yellow + ); + + Console.ReadKey(); + Console.Clear(); + } + + private static void AskForDifficulty() + { + string[] names = Enum.GetNames(typeof(Difficulty)); + + for (int i = 1; i <= names.Length; i++) + { + WriteText($"{i}. {names[i - 1]}\n", ConsoleColor.Blue); + } + + WriteText("Выберите номер сложности (от 1 до 6): "); string? userInput = Console.ReadLine(); + bool inputIsWrong = !int.TryParse(userInput, out var inputNumber); + + if (inputIsWrong) throw new NullReferenceException(); + + if (inputNumber is not (1 or 2 or 3 or 4 or 5)) + { + PoshlaNahui(); + } + else + { + Program.Difficulty = (Difficulty)inputNumber; + } + } + + private static void AskForStartGame() + { + WriteText("Хотите начать игру (Y либо N)? "); + + string? userInput = Console.ReadLine(); + Console.Write("\n"); switch (userInput) { @@ -47,9 +105,9 @@ private ConsoleColor GenerateColor() private static void PoshlaNahui() { Console.Clear(); - + WritingText( - "Тебе русским языком сказали сука, введите Y или N, ты чё делаешь?", 0.1f); + "Тебе русским языком сказали сука, ты чё делаешь?", 0.1f); Thread.Sleep(1000); Environment.Exit(777); @@ -58,7 +116,7 @@ private static void PoshlaNahui() private static void NoNotAllowed() { Console.Clear(); - + WritingText("Всмысле блять нет? А зачем ты вообще её запустил?", 0.1f); Thread.Sleep(1000); diff --git a/src/Games/ReactGame/Program.cs b/src/Games/ReactGame/Program.cs index 13a9e57..b407959 100644 --- a/src/Games/ReactGame/Program.cs +++ b/src/Games/ReactGame/Program.cs @@ -7,14 +7,34 @@ namespace ReactGame; public static class Program { - public static PreviewMenu PreviewMenu; + private static PreviewMenu PreviewMenu; public static Game Game; + public static Difficulty Difficulty; + public static bool ShowsHelp; - public static void Main() + public static void Main(string[] args) { + CheckForParams(args); + PreviewMenu = new PreviewMenu(); Game = new Game(); PreviewMenu.Draw(); } + + private static void CheckForParams(string[] args) + { + if (args == null) + { + throw new ArgumentNullException(); + } + + if (args.Any(param => param is "-nh" or "-NH" or "--no-help")) + { + ShowsHelp = false; + return; + } + + ShowsHelp = true; + } } \ No newline at end of file From 51783d5517b833dc4b62552eef56c940a0932da2 Mon Sep 17 00:00:00 2001 From: BlitGaming Date: Wed, 24 Nov 2021 15:27:14 +0700 Subject: [PATCH 6/9] make README.md --- src/Games/ReactGame/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/Games/ReactGame/README.md diff --git a/src/Games/ReactGame/README.md b/src/Games/ReactGame/README.md new file mode 100644 index 0000000..d064752 --- /dev/null +++ b/src/Games/ReactGame/README.md @@ -0,0 +1,10 @@ +## ReactGame - Игра на скорость реакции + +### Краткое описание +Эта игра весьма полезна для домохозяек, ведь помогает повысить их скорость реакции аж до 1 минуты +против прошлых 2 минут! + +Помощь по игре находится в самой игре. + +Зависимости: +- .NET 6.0 \ No newline at end of file From 36c76e94fd5a344729b802d0fcd299bd8a72fe27 Mon Sep 17 00:00:00 2001 From: BlitGaming Date: Wed, 24 Nov 2021 15:38:01 +0700 Subject: [PATCH 7/9] fix games README.md --- src/Games/README.md | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/Games/README.md b/src/Games/README.md index e115c7b..db400c0 100644 --- a/src/Games/README.md +++ b/src/Games/README.md @@ -1,41 +1,48 @@ -## ExtremeCodeOS games +## ExtremeCodeOS Games ### Введение Лучшая операционная система нуждается в играх, чтобы было чем заняться после работы, без перехода на другие ОС. -Папка **games** в корне операционной системы содержит +Папка **Games** в корне операционной системы содержит ряд простых консольных казуальных игр. ### Игры Игры с их описанием: -- _ExtremeCodeOs_ _runner_ -Простой 3-х полосный раннер на С. -_безопасный выход из игры_ _-_ _q_ +- _ExtremeCodeOs runner_ + >Простой 3-х полосный раннер на С. + _Безопасный выход из игры - q._ - _Limpopo_ (#95) >Древнее национальное развлечение племени Мумба-Юмба воплощено в нашей ОС в консольном варианте. (Рекомендуется играть в одиночестве перед зеркалом) - - - _TicTacToe_ - Игра крестики ноликина С. + >Игра крестики нолики на С. Специально для ExtremeCodeOS. Вводим с клавиатуры номер ячейки, которую хотим ввести ```0 - 9``` - _Console Money Finder_ - Передвигайтесь по карте и + >Передвигайтесь по карте и собирайте деньги. Простая игра на C# специально - для ExtremeCodeOS + для ExtremeCodeOS. + +- _React Game_ + >Помечайте место, + где находится жёлтая звезда + и не промахивайтесь, помечая + космический мусор (Полный help в самой игре) ### Запуск Все игры находятся в своих подпапках, как исходные коды программ. -В случае игры на С команда компиляции для gcc будет следующая: +В случае игры на С, команда компиляции через **gcc** будет следующая: +___ gcc <имя исходника>.c -O1 -o <имя игры>.<расширение> - --- +А для компиляции .NET-подобных игр, таких как: +- ReactGame, нужно установить Visual Studio 2021 или +Jetbrains Rider 2021, открыть проект и скомпилировать. \ No newline at end of file From 508c2eddcb8cd265d179fe176ff15ef5da7101f7 Mon Sep 17 00:00:00 2001 From: BlitGaming Date: Thu, 25 Nov 2021 14:02:07 +0700 Subject: [PATCH 8/9] fix README.md --- src/Games/README.md | 6 +++--- src/Games/ReactGame/README.md | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Games/README.md b/src/Games/README.md index db400c0..b9289b9 100644 --- a/src/Games/README.md +++ b/src/Games/README.md @@ -43,6 +43,6 @@ ___ gcc <имя исходника>.c -O1 -o <имя игры>.<расширение> --- -А для компиляции .NET-подобных игр, таких как: -- ReactGame, нужно установить Visual Studio 2021 или -Jetbrains Rider 2021, открыть проект и скомпилировать. \ No newline at end of file + +Скомпилированная версия игры **React Game** находится в релизах +[официального репозитория](https://github.com/BlitGaming/ReactGame). diff --git a/src/Games/ReactGame/README.md b/src/Games/ReactGame/README.md index d064752..fb20d10 100644 --- a/src/Games/ReactGame/README.md +++ b/src/Games/ReactGame/README.md @@ -4,7 +4,5 @@ Эта игра весьма полезна для домохозяек, ведь помогает повысить их скорость реакции аж до 1 минуты против прошлых 2 минут! -Помощь по игре находится в самой игре. - -Зависимости: -- .NET 6.0 \ No newline at end of file +Помощь и скомпилированная игра в +[официальном репозитории](https://github.com/BlitGaming/ReactGame). From 8e1207828c0d0641d52699b63d03795edf7f99a9 Mon Sep 17 00:00:00 2001 From: BlitGaming Date: Thu, 25 Nov 2021 14:04:14 +0700 Subject: [PATCH 9/9] fix README.md --- src/Games/ReactGame/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Games/ReactGame/README.md b/src/Games/ReactGame/README.md index fb20d10..3d1aca9 100644 --- a/src/Games/ReactGame/README.md +++ b/src/Games/ReactGame/README.md @@ -6,3 +6,6 @@ Помощь и скомпилированная игра в [официальном репозитории](https://github.com/BlitGaming/ReactGame). + +>Обновления игры заливаются только в официальный репозиторий. +Это **beta release, в котором много багов.**