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

using namespace std;

std::vector<int> getVisionPattern1d()
{
    return {1, 1, 4, 1, 1, 1, 3};
}

int getMove1d(std::vector<int> v)
{
    if(v.size() == 9){
        if(v[8] == 3)
            return 8;
        return 0;
    }
    if(v.size() == 7){
        if(v[6] == 4)
            return 6;
        return 0;
    }
    if(v.size() == 3){
        if(v[0] != 1)
            return 0;
        if(v[2] != 1)
            return 2;
        return 2;
    }

}

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

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