This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Tsak_3_1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Game game = new Game(); | |
game.Play(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Task_2_1 | |
{ | |
internal class Program | |
{ | |
const int MinRandomArrayValue = 1; | |
const int MaxRandomArrayValue = 101; | |
const int MinRandomElementValue = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
namespace Task_1_1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// a. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |