Skip to content

Instantly share code, notes, and snippets.

@rgweh
rgweh / gist:13a1782c2540b4a9bec555c93975c979
Last active September 10, 2024 11:06
ДЗ: Работа со свойствами
using System;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
Renderer renderer = new Renderer();
Player player = new Player(20, 5, '@');
@rgweh
rgweh / gist:2d4f78c48ecdc617455518e3a5b89c51
Last active September 10, 2024 08:06
ДЗ: Работа с классами
using System;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
int minHealth = 10;
int maxHealth = 50;
@rgweh
rgweh / gist:6e3b10dc4e2edde6532c12c9e0b098f8
Last active September 9, 2024 13:24
ДЗ: Объединение в одну коллекцию
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
int[] numbers1 = { 1, 2, 1, 4, 2 };
@rgweh
rgweh / gist:1bcaa2c1505038ac7933d550a0e158aa
Last active September 9, 2024 11:07
ДЗ: Кадровый учет продвинутый
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAddWorker = "add";
@rgweh
rgweh / gist:16103a16909298a232228f2ba4822270
Last active September 4, 2024 04:44
ДЗ: Динамический массив продвинутый
using System;
using System.Collections.Generic;
namespace HomeWorks
{
public class Program
{
static void Main(string[] args)
{
const string CommandExit = "exit";
@rgweh
rgweh / gist:aea55288e447bdb9ac479c1fc7095922
Created September 3, 2024 17:23
ДЗ: Очередь в магазине
using System;
using System.Collections.Generic;
namespace HomeWorks
{
public class Program
{
static void Main(string[] args)
{
Random random = new Random();
@rgweh
rgweh / gist:cf2064a1bf5642c6e3d1ee8833041619
Created September 3, 2024 17:02
ДЗ: Толковый словарь
using System;
using System.Collections.Generic;
namespace HomeWorks
{
public class Program
{
static void Main(string[] args)
{
Dictionary<string, string> kitchenProfessions = new Dictionary<string, string>();
@rgweh
rgweh / gist:c0ff9ac7f0eec8755eab7b766d0507ca
Last active September 7, 2024 08:03
ДЗ: Brave new world
using System;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
char wall = '#';
char empty = ' ';
@rgweh
rgweh / gist:29b860b699ad98feba2f7ba53407b6db
Last active August 29, 2024 06:56
ДЗ: Канзас сити шафл
using System;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
int timesShuffled = 20;
@rgweh
rgweh / gist:13e51201d883340d26dc938b33c59b24
Last active September 6, 2024 10:35
ДЗ: Кадровый учет
using System;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAddRecord = "add";
const string CommandShowRecords = "all";