Guest User

Untitled

a guest
Jul 13th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. moveGen(Coordinate start,int deltaX, int deltaY){
  2. int x=start+deltaX;
  3. int y=start+deltaY;
  4.  
  5. if(Coordinate(x,y) is occupied by friend){
  6. stop.
  7. }else if(Coordinate(x,y) is free){
  8. add move
  9. moveGen(Coordinate(x,y),deltaX,deltaY)
  10. }else{ //if coordinate(x,y) is occupied by foe
  11. add move
  12. }
  13. }
Add Comment
Please, Sign In to add comment