Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- menorCaminho(int pos_x, int pos_y, int pontuação, xtarget, ytarget) {
- if (pos_x == xtarget and pos_y == ytarget) {
- return pontuação;
- }
- menorCaminho(pos_x + 1, pos_y, pontuação+1, xtarget, ytarget);
- menorCaminho(pos_x, pos_y +1, pontuação+1, xtarget, ytarget);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement