Skip to content

Instantly share code, notes, and snippets.

View DIFIKYT's full-sized avatar
💀
Skull - scary

DIFIKYT DIFIKYT

💀
Skull - scary
View GitHub Profile
public class Player
{
private readonly string _name;
private readonly int _age;
private readonly Mover _mover;
private readonly Attacker _attacker;
public Player(string name, int age, Mover mover, Attacker attacker)
{
private const int MinChance = 0;
private const int MaxChance = 100;
public static void SpawnObject()
{
//Создание объекта на карте
}
public static void GenerateChance()
{
using System.Security.Cryptography;
using System.Text;
namespace Encapsulation
{
class Program
{
static void Main(string[] args)
{
Order order = new(50, 12000);
namespace Encapsulation
{
class Program
{
static void Main(string[] args)
{
Pathfinder fileWritter = new(new FileLogger());
Pathfinder consoleWritter = new(new ConsoleLogger());
Pathfinder fridayFileWritter = new(new FridayLogger(new FileLogger()));
Pathfinder fridayConsoleWritter = new(new FridayLogger(new ConsoleLogger()));
namespace Encapsulation
{
class Program
{
static void Main(string[] args)
{
Good iPhone12 = new("IPhone 12");
Good iPhone11 = new("IPhone 11");
Warehouse warehouse = new();
namespace Encapsulation
{
class Program
{
static void Main(string[] args)
{
int weaponDamage = 5;
int weaponBulletsCount = 30;
int bulletsCountForFire = 1;
int playerHealth = 100;