Добавлены лабораторные работы

This commit is contained in:
228p
2026-09-29 14:17:11 +03:00
parent 6341b0aa57
commit c05629f619
106 changed files with 83985 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# Лабораторная работа №1
* **Студент:** [ФИО]
* **Вариант / Карточка:** [Например: #025 Pikachu]
---
## Ключевой код
```csharp
// Самая важная часть реализации (методы, структуры, логика)
public class Card
{
public string Name { get; set; }
public int Hp { get; set; }
}
+69
View File
@@ -0,0 +1,69 @@
namespace DefaultNamespace;
//Console.WriteLine("=== Прокачка покемона ===");
//Console.Write("Введите базовую атаку ");
//int bsdmg = int.Parse(Console.ReadLine());
//Console.Write("Введите уровень ");
//int level = int.Parse(Console.ReadLine());
//int enddmg = bsdmg+(level*5);
//Console.WriteLine($"Итоговая атака: {enddmg}");
// int balanceTrainer = 1500;
// Console.WriteLine($"Текущий баланс: {balanceTrainer} монет ");
// int oneHealingPotion = 200;
// Console.Write("Укажите количество зелей которые вы хотите приобрести: ");
// int countbuyPotion = int.Parse(Console.ReadLine());
// balanceTrainer = balanceTrainer - oneHealingPotion * countbuyPotion;
// Console.WriteLine($"Вы успешно купили и ваш остаток сдреств: {balanceTrainer}");
Console.Write($"Количество здоровье Покемона: ");
int hpPokemon = int.Parse(Console.ReadLine());
if (hpPokemon > 50)
{
Console.WriteLine("Покемон полон сил и готов к бою!");
}
else if (hpPokemon > 21)
{
Console.WriteLine("Покемон ранен, будьте осторожны.");
}
else if (hpPokemon > 1)
{
Console.WriteLine("Критическое состояние! Срочно используйте зелье!");
}
else if (hpPokemon < 0)
{
Console.WriteLine("Покемон потерял сознание! Верните его в покебол");
}
Console.WriteLine("1 - Атака ");
int attack = 1;
Console.WriteLine("2 - Инвентарь ");
int inventory = 2;
Console.WriteLine("3 - Сменить персонажа ");
int swap = 3;
Console.WriteLine("4 - Побег ");
int escape = 4;
Console.WriteLine($"Введите номер действия");
int deistvie = int.Parse(Console.ReadLine());
switch (deistvie)
{
case 1:
Console.WriteLine("Покемон наносит быстрый удар!");
break;
case 2:
Console.WriteLine("Вы открыли сумку и применили Зелье Лечения.");
break;
case 3:
Console.WriteLine("Вы отозвали покемона и выпустили нового!");
break;
case 4:
Console.WriteLine("Вы успешно сбежали из боя!");
break;
default :
Console.WriteLine("Неизвестная команда! Вы пропустили ход.");
break;
}
+15
View File
@@ -0,0 +1,15 @@
# Лабораторная работа №2
* **Студент:** [ФИО]
* **Вариант / Карточка:** [Например: #025 Pikachu]
---
## Ключевой код
```csharp
// Самая важная часть реализации (методы, структуры, логика)
public class Card
{
public string Name { get; set; }
public int Hp { get; set; }
}
@@ -0,0 +1,34 @@
{
"Version": 1,
"WorkspaceRootPath": "Z:\\stage1\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{391EE8A5-FBED-4A1E-8F82-E2CD021C31AF}|228prud.csproj|d:\\228prud\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "D:\\228prud\\Program.cs",
"ToolTip": "D:\\228prud\\Program.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-09-02T12:37:26.768Z",
"EditorCaption": ""
}
]
}
]
}
]
}
@@ -0,0 +1,34 @@
{
"Version": 1,
"WorkspaceRootPath": "Z:\\stage1\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{391EE8A5-FBED-4A1E-8F82-E2CD021C31AF}|228prud.csproj|d:\\228prud\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "D:\\228prud\\Program.cs",
"ToolTip": "D:\\228prud\\Program.cs",
"ViewState": "AgIAAB8AAAAAAAAAAAAgwAAAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-09-02T12:37:26.768Z",
"EditorCaption": ""
}
]
}
]
}
]
}
+25
View File
@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36616.10 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "228prud", "D:\228prud\228prud.csproj", "{391EE8A5-FBED-4A1E-8F82-E2CD021C31AF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{391EE8A5-FBED-4A1E-8F82-E2CD021C31AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{391EE8A5-FBED-4A1E-8F82-E2CD021C31AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{391EE8A5-FBED-4A1E-8F82-E2CD021C31AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{391EE8A5-FBED-4A1E-8F82-E2CD021C31AF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0AB7249B-5656-4217-8661-AC35E7CB8AAA}
EndGlobalSection
EndGlobal
@@ -0,0 +1,6 @@
Сборка начата в 15:35...
1>------ Сборка начата: проект: 228prud, Конфигурация: Debug Any CPU ------
1>D:\228prud\Program.cs(35,17,35,23): warning CS0219: Переменной "number" присвоено значение, но оно ни разу не использовано.
1> 228prud -> D:\228prud\bin\Debug\228prud.exe
========== Сборка: успешно выполнено — 1 , со сбоем — 0, в актуальном состоянии — 0, пропущено — 0 ==========
========== Сборка завершено в 15:35 и заняло 00,247 с ==========