Skip to content

Instantly share code, notes, and snippets.

@KanArtCode
KanArtCode / gist:e0233f450835b2606d7ac5de126539b6
Last active March 28, 2026 15:40
ДЗ: База данных игроков
namespace Players_DataBase
{
internal class Program
{
static void Main(string[] args)
{
Database database = new Database();
DatabaseManager databaseManager = new DatabaseManager();
databaseManager.HandleDatabase(database);
@KanArtCode
KanArtCode / gist:fd2fdc8ac87d38af13f862c927359a2d
Last active March 26, 2026 14:48
ДЗ: Работа со свойствами
namespace Work_with_Properties
{
internal class Program
{
static void Main(string[] args)
{
Player player = new Player(5, 4, '#');
DrawTool drawTool = new DrawTool();
drawTool.Draw(player);
@KanArtCode
KanArtCode / gist:047fbf20616f5e0dc76696c5961d0eb4
Last active March 26, 2026 10:39
ДЗ: Работа с классами
namespace Work_with_classes
{
internal class Program
{
static void Main(string[] args)
{
Player player = new Player("Rudolf", 25);
player.ShowInfo();
}
}
@KanArtCode
KanArtCode / gist:b9cb44cafe60e3c0f666f083c1880ac6
Last active March 24, 2026 12:17
ДЗ: Объединение в одну коллекцию
namespace ArrayUnification
{
internal class Program
{
static void Main(string[] args)
{
int[] firstArray = { 1, 2, 4, 5, 8, 63 };
int[] secondArray = { 2, 33, 5, 6, 7 };
HashSet<int> unitedNumbers = new HashSet<int>();
@KanArtCode
KanArtCode / gist:fc39a97d2e646b33d9c80a85778a03a5
Last active March 22, 2026 10:16
ДЗ: Кадровый учет продвинутый
namespace HRCounting
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAdd = "1";
const string CommandPrintAll = "2";
const string CommandDelete = "3";
const string CommandSearch = "4";
@KanArtCode
KanArtCode / gist:356ef93baef5e23f2f2f45dac36dcd17
Last active March 24, 2026 10:41
ДЗ: Динамический массив продвинутый
namespace Dynamic_Array
{
internal class Program
{
static void Main(string[] args)
{
const string CommandSum = "sum";
const string CommandExit = "exit";
bool isRun = true;
@KanArtCode
KanArtCode / gist:67fc867b66447ae7766d32747066b5c8
Created February 15, 2026 12:58
ДЗ: Очередь в магазине
namespace Shop_Queue
{
internal class Program
{
static void Main(string[] args)
{
int incomeMoney = 0;
string openShop = "Магазин открыт";
Queue<int> customersBuy = new Queue<int>();
namespace Dictionary
{
internal class Program
{
static void Main(string[] args)
{
const string CommandFind = "1";
const string CommandExit = "2";
Dictionary<string, string> words = new Dictionary<string, string>();
@KanArtCode
KanArtCode / gist:b91a4525c16d566f7842d9980ff87a4e
Last active February 12, 2026 12:41
ДЗ: Brave New World
namespace BraveNewWorld
{
internal class Program
{
static void Main(string[] args)
{
string mapText = "##########\n" +
"# # #\n" +
"### # # ##\n" +
@KanArtCode
KanArtCode / gist:b69047f264e41e2c688e73b798834e56
Last active January 24, 2026 07:24
ДЗ: Кадровый учёт
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace HRCounting
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAdd = "1";
const string CommandPrintAll = "2";