#include "vision.h"
#include "bits/stdc++.h"

using namespace std;

vector<int> getVisionPattern1d() {
    return {1, 1, 2, 1, 3};
}

int getMove1d(vector<int> v) {
    if (v.size() == 3) {
        if (v[0] == 2 and v[2] == 3) return 2;
        if (v[0] == 3 and v[2] == 2) return 0;
        if (v[0] == 3) return 2;
        if (v[2] == 3) return 0;
        if (v[0] == 2) return 0;
        return 2;
    } else if (v.size() == 5) {
        return find(v.begin(), v.end(), 3) - v.begin();
    } else {
        if (v[4] == 1 and v[5] == 1) return 4;
        return 2;
    }
}

vector<vector<int>> getVisionPattern2d()
{
    return {{1}};
}

pair<int, int> getMove2d(vector<vector<int>> v)
{
    return {0, 0};
}
