Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*----------------------Graph Moves----------------*/
- //const int fx[]={+1,-1,+0,+0};
- //const int fy[]={+0,+0,+1,-1};
- //const int fx[]={+0,+0,+1,-1,-1,+1,-1,+1}; // Kings Move
- //const int fy[]={-1,+1,+0,+0,+1,+1,-1,-1}; // Kings Move
- //const int fx[]={-2, -2, -1, -1, 1, 1, 2, 2}; // Knights Move
- //const int fy[]={-1, 1, -2, 2, -2, 2, -1, 1}; // Knights Move
- /*------------------------------------------------*/
- /*-----------------------Bitmask------------------*/
- //int Set(int N,int pos){return N=N | (1<<pos);}
- //int reset(int N,int pos){return N= N & ~(1<<pos);}
- //bool check(int N,int pos){return (bool)(N & (1<<pos));}
- /*------------------------------------------------*/
Advertisement
Add Comment
Please, Sign In to add comment