#include "vision.h"

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

int getMove1d(std::vector<int> v)
{
    if (v.size() == 3) return 2;

    int c2 = 0;
    for (int i = 0; i < 5; i++) c2 += v[i] - 1;

    if (c2 == 3 and v[0] == 2) return 4;
    if (c2 == 3 and v[0] == 1) return 0;

    if (v[0] == 2) return 0;
    if (v[4] == 2) return 4;

    if (v[1] == 2) return 4;
    if (v[3] == 2) return 0;

    return 0;
}

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

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