Исправление оформления

This commit is contained in:
Беляев Антон
2026-09-20 12:56:13 +03:00
parent e7fc1df8e1
commit 6be8530fa6
30 changed files with 117 additions and 381 deletions
+95
View File
@@ -0,0 +1,95 @@
# STAGE 2
---
## Ключевой код
```csharp
using System;
namespace stage02
{
class Stage02Tasks
{
static void Main(string[] args)
{
Console.WriteLine("Введите стадию развития покемона: ");
string stage = Console.ReadLine();
Console.WriteLine("Введите имя покемона: ");
string name = Console.ReadLine();
Console.WriteLine("Введите вид покемона: ");
string category = Console.ReadLine();
Console.WriteLine("Введите название первой атаки покемона: ");
string attack1Name = Console.ReadLine();
Console.WriteLine("Введите эффект первой атаки покемона: ");
string attack1Desc = Console.ReadLine();
Console.WriteLine("Введите название второй атаки покемона: ");
string attack2Name = Console.ReadLine();
Console.WriteLine("Введите эффект второй атаки покемона: ");
string attack2Desc = Console.ReadLine();
Console.WriteLine("Введите уязвимость покемона: ");
string weakness = Console.ReadLine();
Console.WriteLine("Введите устойчивость покемона: ");
string resistance = Console.ReadLine();
int hp = 60 ;
int number = 25 ;
double height = 0.4;
double weight = 6.0;
int attack2Damage = 20 ;
int retreatCost = 1 ;
Console.WriteLine("======================================================================");
Console.WriteLine($"[БАЗА]{name } ОЖ: {hp} [⚡]");
Console.WriteLine("----------------------------------------------------------------------");
Console.WriteLine($"№ 0{number} | Вид: {category } | Рост: {height} м | Вес: {weight} кг");
Console.WriteLine("----------------------------------------------------------------------");
Console.WriteLine($"[Атака 1] {attack1Name} ");
Console.WriteLine($"Эффект: {attack1Desc}");
Console.WriteLine($"[Атака 2] {attack2Name} Урон: {attack2Damage}+");
Console.WriteLine(" ");
Console.WriteLine($"Эффект: {attack2Desc}");
Console.WriteLine("----------------------------------------------------------------------");
Console.WriteLine($"Слабость: {weakness}");
Console.WriteLine($"Устойчивость: {resistance}");
Console.WriteLine($"Отступление: {retreatCost} энергия");
Console.WriteLine("======================================================================");
}
}
}
```
## ВЫВОД:
Введите стадию развития покемона:
БАЗОВЫЙ
Введите имя покемона:
Пикачу
Введите вид покемона:
Мышь
Введите название первой атаки покемона:
Электроудар
Введите эффект первой атаки покемона:
Брось монету. Если выпал орёл, активный Покемон твоего противника теперь парализован.
Введите название второй атаки покемона:
Быстрая Атака
Введите эффект второй атаки покемона:
Брось монету. Если выпал орёл, эта атака наносит на 10 пунктов урона больше.
Введите уязвимость покемона:
Боевой x2
Введите устойчивость покемона:
Стальной -20
======================================================================
[БАЗА]Пикачу ОЖ: 60 [?]
----------------------------------------------------------------------
№ 025 | Вид: Мышь | Рост: 0,4 м | Вес: 6 кг
----------------------------------------------------------------------
[Атака 1] Электроудар
Эффект: Брось монету. Если выпал орёл, активный Покемон твоего противника теперь парализован.
[Атака 2] Быстрая Атака Урон: 20+
Эффект: Брось монету. Если выпал орёл, эта атака наносит на 10 пунктов урона больше.
----------------------------------------------------------------------
Слабость: Боевой x2
Устойчивость: Стальной -20
Отступление: 1 энергия
======================================================================
Process finished with exit code 0.
+55
View File
@@ -0,0 +1,55 @@
using System;
namespace stage01
{
class Stage04
{
static void Main(string[] args)
{
Console.OutputEncoding = System.Text.Encoding.UTF8; //для отображения значка энергии;
Console.Write("Введите стадию развития (например, БАЗОВЫЙ): ");
string stage = Console.ReadLine();
Console.Write("Введите имя покемона: ");
string name = Console.ReadLine();
Console.Write("Введите вид покемона: ");
string category = Console.ReadLine();
Console.Write("Введите название первой атаки: ");
string attack1Name = Console.ReadLine();
Console.Write("Введите эффект первой атаки: ");
string attack1Desc = Console.ReadLine();
Console.Write("Введите название второй атаки: ");
string attack2Name = Console.ReadLine();
Console.Write("Введите эффект второй атаки: ");
string attack2Desc = Console.ReadLine();
Console.Write("Введите уязвимость: ");
string weakness = Console.ReadLine();
Console.Write("Введите устойчивость: ");
string resistance = Console.ReadLine();
int hp = 60;
int number = 25;
double height = 0.4;
double weight = 6.0;
int attack2Damage = 20;
int retreatCost = 1;
Console.Clear();
Console.WriteLine("======================================================================");
Console.WriteLine($"[{stage}] {name} ОЖ: {hp} [⚡]");
Console.WriteLine("----------------------------------------------------------------------");
Console.WriteLine($"№ {number:D3} | Вид: {category} | Рост: {height:F1} м | Вес: {weight:F1} кг");
Console.WriteLine("----------------------------------------------------------------------");
Console.WriteLine($"[Атака 1] {attack1Name}");
Console.WriteLine($"Эффект: {attack1Desc}");
Console.WriteLine();
Console.WriteLine($"[Атака 2] {attack2Name} Урон: {attack2Damage}+");
Console.WriteLine($"Эффект: {attack2Desc}");
Console.WriteLine("----------------------------------------------------------------------");
Console.WriteLine($"Слабость: {weakness}");
Console.WriteLine($"Устойчивость: {resistance}");
Console.WriteLine($"Отступление: {retreatCost} энергия");
Console.WriteLine("======================================================================");
}
}
}
+11
View File
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>stage_1</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
+16
View File
@@ -0,0 +1,16 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "stage-1", "stage-1\stage-1.csproj", "{A00EE43B-1529-46D9-89E1-2731C611F348}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A00EE43B-1529-46D9-89E1-2731C611F348}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A00EE43B-1529-46D9-89E1-2731C611F348}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A00EE43B-1529-46D9-89E1-2731C611F348}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A00EE43B-1529-46D9-89E1-2731C611F348}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal