Format code to tabs

This commit is contained in:
Matúš Púll 2025-07-26 09:31:27 +02:00
parent 4b7fe1fc5f
commit 14a0336886

View file

@ -45,6 +45,10 @@ struct pos {
pos() : x(-1), y(-1) {}
pos(int px, int py) : x(px), y(py) {}
pos(Vector2 v) : x(v.x), y(v.y) {}
pos operator/(int a) {return {x/a, y/a};};
pos operator%(int a) {return {x%a, y%a};};
pos normalize() {
if(x >= 3) x = 2;
else if(x < 0) x = 0;
@ -52,8 +56,6 @@ struct pos {
else if(y < 0) y = 0;
return *this;
}
pos operator/(int a) {return {x/a, y/a};};
pos operator%(int a) {return {x%a, y%a};};
int to_int() { return 3*y + x; }
deque<int> to_deque(int depth, int screenSize) {
deque<int> r = {};