Skip to content

Instantly share code, notes, and snippets.

@ArteSeit
ArteSeit / gist:dbc9d3f022f04704041af9b58c0dd711
Created August 9, 2025 12:39
ДЗ: Работа с классами
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
Player player1 = new Player("ArteSeit", 23, 1);
player1.ShowInformation();
}
}
@ArteSeit
ArteSeit / gist:f08d457109aa64fabb7402ca6b085ec6
Created July 10, 2025 16:45
ДЗ: Объединение в одну коллекцию
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
string[] array1 = new[] { "1", "2", "1" };
string[] array2 = new[] { "3", "2" };
List<string> lines = new List<string>();
@ArteSeit
ArteSeit / gist:e33064f8070d1d850d14c9aab56403f8
Last active July 10, 2025 16:24
ДЗ: Кадровый учет продвинутый
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAddDossier = "1";
const string CommandReadDossier = "2";
const string CommandDeleteDossier = "3";
const string CommandExitProgram = "4";
@ArteSeit
ArteSeit / gist:4eb949cf32e1849075ed945366adbbc8
Last active July 10, 2025 13:35
ДЗ: Динамический массив продвинутый
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
const string CommandSumNumbers = "sum";
const string CommandExitProgram = "exit";
List<int> numbers = new List<int>();
@ArteSeit
ArteSeit / gist:9bdf89d0874b6c98c65f6d8c2321aaed
Created July 10, 2025 13:03
ДЗ: Очередь в магазине
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
Queue<int> sumPurchases = new Queue<int>();
int countQueue = 5;
int sum = 0;
@ArteSeit
ArteSeit / gist:8172d699925a154b652442018cd6c16d
Last active July 10, 2025 12:40
ДЗ: Толковый словарь
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
const string CommandExitProgram = "0";
Dictionary<string, string> explanatoryDictionary = new Dictionary<string, string>();
explanatoryDictionary.Add("Алгоритм", "Последовательность шагов для решения задачи");
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
Console.CursorVisible = false;
char[,] map =
{
@ArteSeit
ArteSeit / gist:4b99d1fb8f00d8e0c7495875bf036d48
Last active July 9, 2025 18:46
ДЗ: Кадровый учет
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAddDossier = "1";
const string CommandReadDossier = "2";
const string CommandDeleteDossier = "3";
const string CommandFindFamily = "4";
@ArteSeit
ArteSeit / gist:be8ba0f569de128c37613bafc94c21bc
Last active July 8, 2025 15:57
ДЗ: Канзас сити шафл
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
int[] numbers = new int [10];
Random random = new Random();
int minValue = -10;
int maxValue = 10;
namespace CSLight
{
internal class Program
{
static void Main(string[] args)
{
int healtsPercents = 200;
int manaPercents = 8;
int charsBar = 10;