#include #include #include using namespace std; /* possiblemoves(int startx,int starty,int destx,int desty,int sizeofmatrix) { int lowerleft[2]; int lowerright[2]; int upperleft[2]; int upperright[2]; int onlyleft[2]; int onlyright[2]; upperleft[0]=startx-2; upperleft[1]=starty-1; upperright[0]=startx-2; upperright[1]=starty+1; lowerleft[0]=startx+2; lowerleft[1]=starty-1; lowerright[0]=startx+2; lowerright[1]=starty+1; onlyleft[0]=startx; onlyleft[1]=starty-2; onlyright[0]=startx; onlyright[1]=starty+2; cout<<"UpperRightmove:("<=0 && upperleft[1] >=0){ //cout<<"UpperLeftmove:("<=0 && upperright[1] <=sizeofmatrix-1){ // cout<<"Upperrightmove:("<=0){ // cout<<"lowerleftmove:("<=0){ // cout<<"lowerRightmove:("<=0){ // cout<<"onlyleft move:("<>N; cin>>sx>>sy; cin>>fx>>fy; // cout<<"Matrix:"<