Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. public class TiraTestit {
  2.     // int reitit = 0;
  3.  
  4.     public static void uoleviPuistossaLoL(boolean[][] puisto, int i, int j, int kayty) {
  5.         int reitit = 0;
  6.         if (kayty == 25) {
  7.             reitit++;
  8.         }
  9.         if (i < 0 || i > 4) {
  10.  
  11.         } else if (j < 0 || j > 4) {
  12.  
  13.         } else {
  14.             uoleviPuistossaLoL(puisto, i, j - 1, kayty);
  15.             uoleviPuistossaLoL(puisto, i, j + 1, kayty);
  16.             uoleviPuistossaLoL(puisto, i - 1, j, kayty);
  17.             uoleviPuistossaLoL(puisto, i + 1, j, kayty);
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement