Skip to content

Instantly share code, notes, and snippets.

@rgweh
rgweh / gist:d05ba3793b359c38730668057ab7f42c
Last active October 8, 2024 11:45
ДЗ: Автосервис
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
List<Part> parts = new List<Part>
@rgweh
rgweh / gist:0da1452b606b0c5950eb905200a1f16b
Last active September 30, 2024 13:52
ДЗ: Аквариум
using System.Collections.Generic;
using System;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
FishtankOperator fishtankOperator = new FishtankOperator();
@rgweh
rgweh / gist:31bfa8f54ad9b7270e4b98205a576a94
Last active September 27, 2024 16:18
ДЗ: Война
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
int baseHealth = 100;
@rgweh
rgweh / gist:182f65619472c7fbafe34d82eb3ba8b8
Last active September 27, 2024 07:19
ДЗ: Супермаркет
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
List<Item> allItems = new List<Item>
@rgweh
rgweh / gist:185154daf1c13b04de72854c876edf04
Last active September 25, 2024 11:17
ДЗ: Гладиаторские бои
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
const string CommandContinue = "yes";
@rgweh
rgweh / gist:1b372eee7c03918ed8258bcaeeebe1bd
Last active September 23, 2024 08:25
ДЗ: Конфигуратор пассажирских поездов
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
Dispatcher dispatcher = new Dispatcher();
@rgweh
rgweh / gist:6c2b4895b1ff1713ca70620c240a0fe7
Last active September 19, 2024 13:26
ДЗ: Магазин
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
Shop shop = new Shop();
@rgweh
rgweh / gist:3bd29eddb97af9d867f812b03ce8755a
Last active September 18, 2024 14:04
ДЗ: Хранилище книг
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAdd = "add";
@rgweh
rgweh / gist:7d33e475ddc2667a5edbdaa06846a983
Last active September 18, 2024 10:56
ДЗ: Колода карт
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
Player player = new Player();
@rgweh
rgweh / gist:9a3731de4517584bb9360977ad61f349
Last active September 17, 2024 08:10
ДЗ: База данных игроков
using System;
using System.Collections.Generic;
namespace HomeWorks
{
internal class Program
{
static void Main(string[] args)
{
const string CommandAddPlayer = "add";