#pragma once
#ifndef _MAP
#define _MAP

#include "base.hpp"
#include "map.hpp"

const char * U = "U UPUO  ";
const char * V = "VPV VO  ";
const char * W = "W WOWP  ";
const char * X = "XPXP    ";
const char * Y = "YPYO    ";
const char * Z = "Z ZOZ   ";



class tile : public base 
{
	base* back;
	char[2][2][2] _arr;
	int _col;
	int _row;
    int _rotation;
public:
	char getAt (int col, int row);
	void move (int col, int row);
	void rotate ();
	void nextPos ();
	bool valid ();
	bool fail ();
	void reset ();
};


