#ifndef _EXT_GLBLS
#define _EXT_GLBLS 1

#include <stdio.h>
#include <stdlib.h>


struct grid{
        int x;
        int y;
};

/*
struct movement{
    struct grid source;
    struct grid destination;
    int valid_option;
};
*/

struct movement{
	int source_x;
	int source_y;
	int dest_x;
	int dest_y;
    int xdiff;
    int ydiff;
    int capturing;
    int op_pc;
    int my_pc;
    int my_type;
	int caller;
};

//typedef struct a_movement movement;
//typedef struct Node *NodePtr;
//typedef struct a_movement * moveptr;

struct pieces{
        //int team_color;  //0 white 1 black
        int alive;       //0 dead 1 alive
        int type;        //0 pawn 1 rook 2 knight 3 bishop 4 queen 5 king
        struct grid position;
        int first_turn;
		int color;
};


#endif
