Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool figure::movecheck(piece movement, int i)
- {
- bool flag=false;
- for(int j=0; j<i; j++) if (!movement[j]) flag=true;
- else if (movement[i]=movement[j]) flag=true;
- else flag=false;
- return flag;
- }
- int figure::bishopmove(int x0, int y0, int x, int y, piece *movement, piece board)
- {
- for (int i=0; x0<x; y0<y; x0++, y0++, i++)
- movement[i]=board[x][y];
- return i;
- }
Advertisement
Add Comment
Please, Sign In to add comment