cleanup & architectural changes

This commit is contained in:
2026-05-26 16:26:14 +03:00
parent 680ef59e67
commit d596438a94
6 changed files with 43 additions and 43 deletions
+3 -1
View File
@@ -1,6 +1,5 @@
#pragma once
#include "tilePosition.h"
#include "line.h"
#include "types.h"
@@ -30,6 +29,9 @@ private:
public:
Field(size_t fieldSize);
void updateScore();
Score getScore();
bool canMove() const;
bool move(Direction direction);
-9
View File
@@ -1,9 +0,0 @@
#pragma once
struct Position {
int x;
int y;
Position() : x(0), y(0) {}
Position(int x, int y) : x(x), y(y) {}
};
+8
View File
@@ -8,4 +8,12 @@ enum class Direction {
down,
left,
right
};
struct Position {
int x;
int y;
Position() : x(0), y(0) {}
Position(int x, int y) : x(x), y(y) {}
};