-
Notifications
You must be signed in to change notification settings - Fork 15
EGLQZH #14
base: main
Are you sure you want to change the base?
EGLQZH #14
Conversation
using Utilities; | ||
|
||
namespace TicTacToe.ConsoleHelpers { | ||
enum Justify { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Egy típus = 1 fájl elvet lehet érdemes követni.
public bool HasBorder { get; set; } | ||
|
||
public ConsoleRegion(int row, int col, int width, int height, Justify alignment = Justify.TopLeft, bool border = false) { | ||
if (row < 0 || height < 0 || col < 0 || width < 0 || row + height - 1 > Console.WindowHeight || col + width - 1 > Console.WindowWidth) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elég komplex if. Lehetett volna egy metódus mögé tenni valami jó névvel.
using Utilities; | ||
|
||
namespace TicTacToe { | ||
interface IRenderer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Egy típus = 1 fájl
@@ -0,0 +1,54 @@ | |||
namespace Utilities { | |||
sealed class Vector { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ez pl lehetne struct.
@@ -0,0 +1,125 @@ | |||
using Utilities; | |||
|
|||
namespace TicTacToe { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Szép munka.
A networking még nem sikerült, de majd holnap (ma) próbálkozok még.