26 lines
484 B
C++
26 lines
484 B
C++
#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);
|
|
}
|
|
}; |