generated from admin/template
Загрузить файлы в «stage-1»
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# Техническая задание №1
|
||||||
|
|
||||||
|
* **Студент:** Константинов Матвей Михайлович (gcn)
|
||||||
|
* **Вариант / Карточка:** [Например: #025 Pikachu]
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Ключевой код
|
||||||
|
```csharp
|
||||||
|
// Самая важная часть реализации (методы, структуры, логика)
|
||||||
|
public class Card
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public int Hp { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
Техническое задание: Оцифровка карточки Pokémon TCG
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ConsoleApp1
|
||||||
|
{
|
||||||
|
internal class Program
|
||||||
|
{
|
||||||
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
|
stage1_md();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Задание из stage1.md: оцифровка карточки Пикачу.
|
||||||
|
static void stage1_md()
|
||||||
|
{
|
||||||
|
Console.Clear();
|
||||||
|
Console.WriteLine("Техническое задание: Оцифровка карточки Pokémon TCG");
|
||||||
|
Console.WriteLine("1. Переменные карточки и типы данных");
|
||||||
|
Console.WriteLine("Все характеристики оригинальной карточки Пикачу (025) должны храниться в переменных.\n");
|
||||||
|
|
||||||
|
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("Введите уязвимость (например, Боевой x2): ");
|
||||||
|
string weakness = Console.ReadLine();
|
||||||
|
|
||||||
|
Console.Write("Введите устойчивость (например, Стальной -20): ");
|
||||||
|
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} [молния] № {number:000} | Вид: {category} | Рост: {height} м | Вес: {weight} кг");
|
||||||
|
Console.WriteLine("[Атака 1]");
|
||||||
|
Console.WriteLine($"{attack1Name}");
|
||||||
|
Console.WriteLine($"Эффект: {attack1Desc}");
|
||||||
|
Console.WriteLine("[Атака 2]");
|
||||||
|
Console.WriteLine($"{attack2Name} Урон: {attack2Damage}+");
|
||||||
|
Console.WriteLine($"Эффект: {attack2Desc}");
|
||||||
|
Console.WriteLine($"Слабость: {weakness}");
|
||||||
|
Console.WriteLine($"Устойчивость: {resistance}");
|
||||||
|
Console.WriteLine($"Отступление: {retreatCost} энергия");
|
||||||
|
Console.WriteLine("======================================================================");
|
||||||
|
|
||||||
|
Console.WriteLine("\nНажмите Enter, чтобы завершить...");
|
||||||
|
Console.ReadLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user