Skip to content

Instantly share code, notes, and snippets.

View insearchman's full-sized avatar

Insearchman insearchman

  • Saint-Petersburg
View GitHub Profile
@insearchman
insearchman / Задание 1
Created September 24, 2025 15:10
Блок 3
using System;
namespace Tsak_3_1
{
internal class Program
{
static void Main(string[] args)
{
Game game = new Game();
game.Play();
@insearchman
insearchman / Задание 1
Last active September 18, 2025 22:06
Блок 2
using System;
namespace Task_2_1
{
internal class Program
{
const int MinRandomArrayValue = 1;
const int MaxRandomArrayValue = 101;
const int MinRandomElementValue = 10;
@insearchman
insearchman / Задание 1
Last active September 10, 2025 02:12
Блок 1
using System;
using System.Globalization;
namespace Task_1_1
{
internal class Program
{
static void Main(string[] args)
{
// a.
// How can i refactor this?
public void AddNewTargets(Cuboid cuboid, int range)
{
if (cuboid.X - range > _firstCube.X && Offset(cuboid, offsetX: -range).isWall)
SetTarget(Offset(cuboid, offsetX: -range), true);
if (cuboid.X + range < _lastCube.X && Offset(cuboid, offsetX: range).isWall)
SetTarget(Offset(cuboid, offsetX: range), true);