#define STONE_ON_CROSS 1


enum COLORG : int

{

    c_none,

    c_wall,

    c_black = 2 + STONE_ON_CROSS,

    c_white = 4 + STONE_ON_CROSS,

};


typedef struct POINTG

{

    int x, y;

    POINTG(int a_x, int a_y) { x = a_x, y = a_y; }

    POINTG to_map_xy() { return POINTG(x * 2 + 2 - STONE_ON_CROSS, y * 2 + 2 - STONE_ON_CROSS); }

    POINTG to_board_xy() { return POINTG((x - 2 + STONE_ON_CROSS) / 2, (y - 2 + STONE_ON_CROSS) / 2); }

}POINTG;