#include "vision.h"

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

int getMove1d(std::vector<int> v){
    int sz = v.size(), x = v[sz / 2 + 1];
    if(x == 3){
    	if(v[sz - 1] == 2) return sz - 1;
    	return 0;
	}
	if(x == 2){
		if(v[3] == 3) return 3;
		return 1;
	}
	if(v[0] == 1) return 2;
	return 0;
}

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

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