daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Jul 13th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top