Skip to content

Instantly share code, notes, and snippets.

View Muther90's full-sized avatar

Ilya Muther90

View GitHub Profile
@Muther90
Muther90 / Интернет магазин
Created October 8, 2025 17:13
Интернет магазин
class Program
{
public static void Main()
{
Good iPhone12 = new("IPhone 12");
Good iPhone11 = new("IPhone 11");
Warehouse warehouse = new();
Shop shop = new(warehouse);
@Muther90
Muther90 / Оружие
Last active October 7, 2025 13:34
Оружие
namespace ConsoleApp1
{
public class Weapon
{
private int _damage;
private int _bullets;
public Weapon(int damage, int bullets)
{
if (damage <= 0)
@Muther90
Muther90 / ex-BadExample
Last active February 19, 2025 14:20
Гений Code Style
using UnityEngine;
public class Mover : MonoBehaviour
{
[SerializeField] private Transform _route;
[SerializeField] private float _speed;
[SerializeField] private float _distanceToTarget;
private Vector3[] _waypoints;
private Vector3 _currentTarget;
@Muther90
Muther90 / gist:2e78dfbc126d94e94f82288b648e477b
Created December 6, 2024 13:11
Перевод бойцов
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
internal enum Command
{
ShowAllSoldiers = '1',
MoveSoldiers = '2',
@Muther90
Muther90 / gist:c185f11ea1d23265b033e644af0478c9
Created December 5, 2024 09:53
Отчёт о вооружении
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
internal enum Command
{
ShowAllDataSoldiers = '1',
ShowSoldiersNamesAndRanks = '2',
@Muther90
Muther90 / gist:67617706d9064f35e6fdb8596e3ca8f4
Created December 4, 2024 14:08
Определение просрочки
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
internal enum Command
{
ShowAllCannedFood = '1',
ShowExpiredCannedFood = '2',
@Muther90
Muther90 / gist:c66d75a3746a9954b9776b70aaf96d3e
Last active December 4, 2024 08:55
Топ игроков сервера
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
internal enum Command
{
AllPlayers = '1',
TopStrongestPlayers = '2',
@Muther90
Muther90 / gist:a28019f26de2be8b97a0ef19c3d80df9
Last active December 2, 2024 11:20
Анархия в больнице
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
internal enum Command
{
SortByFullName = '1',
SortByAge = '2',
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
internal enum Command
{
Next = '1',
Exit = '2'
@Muther90
Muther90 / gist:d7a4eae98708799e4e0981af076461b5
Last active November 8, 2024 08:30
Поиск преступника
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1
{
internal enum Command
{
Next = '1',
Exit = '2'