wip
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
using Tile = unsigned long long int;
|
||||
using Score = unsigned long long int;
|
||||
|
||||
enum class Direction {
|
||||
up,
|
||||
down,
|
||||
left,
|
||||
right
|
||||
};
|
||||
|
||||
struct Position {
|
||||
int x;
|
||||
int y;
|
||||
|
||||
Position() : x(0), y(0) {}
|
||||
Position(int x, int y) : x(x), y(y) {}
|
||||
|
||||
bool operator==(const Position& other) const {
|
||||
return ((this->x == other.x) && (this->y == other.y));
|
||||
}
|
||||
bool operator!=(const Position& other) const {
|
||||
return !(*this == other);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user