Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. menorCaminho(int pos_x, int pos_y, int pontuação, xtarget, ytarget) {
  2.     if (pos_x == xtarget and pos_y == ytarget) {
  3.         return pontuação;
  4.     }
  5.    
  6.  
  7.     menorCaminho(pos_x + 1, pos_y, pontuação+1, xtarget, ytarget);
  8.     menorCaminho(pos_x, pos_y +1, pontuação+1, xtarget, ytarget);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement